99390f1f35
view angle vector parse fail is now a handled exception change local host check to byte array to make it faster than comparing string kick command now requires moderator level or higher tempban now requires administrator level or higher hopefully fixed negative SPM bug pipelined the events and consolidated them to run through GameEventHandler uniform console colors
29 lines
892 B
C#
29 lines
892 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>
|
|
void AddEvent(GameEvent gameEvent);
|
|
/// <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();
|
|
}
|
|
}
|