mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-13 00:28:10 -05:00
implement new eventing system
This commit is contained in:
19
SharedLibraryCore/Interfaces/ICoreEventHandler.cs
Normal file
19
SharedLibraryCore/Interfaces/ICoreEventHandler.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System.Threading;
|
||||
using SharedLibraryCore.Events;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Handles games events (from log, manual events, etc)
|
||||
/// </summary>
|
||||
public interface ICoreEventHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// Add a core event event to the queue to be processed
|
||||
/// </summary>
|
||||
/// <param name="manager"><see cref="IManager"/></param>
|
||||
/// <param name="coreEvent"><see cref="CoreEvent"/></param>
|
||||
void QueueEvent(IManager manager, CoreEvent coreEvent);
|
||||
|
||||
void StartProcessing(CancellationToken token);
|
||||
}
|
Reference in New Issue
Block a user