af6361144e
reworked connection system to read from log file for join/quits and authenticate later with polling
30 lines
1015 B
C#
30 lines
1015 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// This class handle games events (from log, manual events, etc)
|
|
/// </summary>
|
|
public interface IEventHandler
|
|
{
|
|
/// <summary>
|
|
/// 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();
|
|
}
|
|
}
|