reworked event management (again)

almost finished
This commit is contained in:
RaidMax
2018-08-27 17:07:54 -05:00
parent 0538d9f479
commit 56cb8c50e7
18 changed files with 382 additions and 431 deletions

View File

@ -13,17 +13,6 @@ namespace SharedLibraryCore.Interfaces
/// Add a game event event to the queue to be processed
/// </summary>
/// <param name="gameEvent">Game event</param>
/// <param name="delayedExecution">don't signal that an event has been aded</param>
void AddEvent(GameEvent gameEvent, bool delayedExecution = false);
/// <summary>
/// Get the next event to be processed
/// </summary>
/// <returns>Game event that needs to be processed</returns>
GameEvent GetNextEvent();
/// <summary>
/// If an event has output. Like executing a command wait until it's available
/// </summary>
/// <returns>List of output strings</returns>
string[] GetEventOutput();
void AddEvent(GameEvent gameEvent);
}
}

View File

@ -13,5 +13,6 @@ namespace SharedLibraryCore.Interfaces
void WriteDebug(string msg);
void WriteWarning(string msg);
void WriteError(string msg);
void WriteAssert(bool condition, string msg);
}
}

View File

@ -11,7 +11,7 @@ namespace SharedLibraryCore.Interfaces
public interface IManager
{
Task Init();
Task Start();
void Start();
void Stop();
ILogger GetLogger();
IList<Server> GetServers();