mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
moved event API stuff around
finally fixed threading issue (which actually had to do with IW4x log outputs being out of sync (not an issue with my code). What a lot of headache over something that wasn't my fault.
This commit is contained in:
@ -1,21 +0,0 @@
|
||||
using SharedLibraryCore.Dtos;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public interface IEventApi
|
||||
{
|
||||
/// <summary>
|
||||
/// Processes event from server as event info
|
||||
/// </summary>
|
||||
/// <param name="sender">Object state from Delegate method call</param>
|
||||
/// <param name="E">Event to process</param>
|
||||
void OnServerEvent(object sender, GameEvent E);
|
||||
/// <summary>
|
||||
/// Get list of recent events
|
||||
/// </summary>
|
||||
/// <param name="shouldConsume">specify wether the request should clear all events after retrieving</param>
|
||||
/// <returns>List of recent event</returns>
|
||||
IEnumerable<EventInfo> GetEvents(bool shouldConsume);
|
||||
}
|
||||
}
|
@ -13,6 +13,6 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// Add a game event event to the queue to be processed
|
||||
/// </summary>
|
||||
/// <param name="gameEvent">Game event</param>
|
||||
void AddEvent(GameEvent gameEvent);
|
||||
bool AddEvent(GameEvent gameEvent);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// <param name="fileSizeDiff"></param>
|
||||
/// <param name="startPosition"></param>
|
||||
/// <returns></returns>
|
||||
ICollection<GameEvent> EventsFromLog(Server server, long fileSizeDiff, long startPosition);
|
||||
ICollection<GameEvent> ReadEventsFromLog(Server server, long fileSizeDiff, long startPosition);
|
||||
/// <summary>
|
||||
/// how long the log file is
|
||||
/// </summary>
|
||||
|
@ -23,7 +23,6 @@ namespace SharedLibraryCore.Interfaces
|
||||
AliasService GetAliasService();
|
||||
PenaltyService GetPenaltyService();
|
||||
IDictionary<int, Player> GetPrivilegedClients();
|
||||
IEventApi GetEventApi();
|
||||
/// <summary>
|
||||
/// Get the event handlers
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user