[tweaks and fixes]

reenable tekno support
address vagrant thread issue
refactor game log reader creation to follow better practices
fix bot issues/address how guids are generated for bots/none provided
This commit is contained in:
RaidMax
2020-05-04 16:50:02 -05:00
parent b49592d666
commit 267e0b8cbe
50 changed files with 775 additions and 233 deletions

View File

@ -23,9 +23,9 @@ namespace SharedLibraryCore.Events
return eventList;
}
public static void OnGameEvent(object sender, GameEventArgs eventState)
public static void OnGameEvent(GameEvent gameEvent)
{
var E = eventState.Event;
var E = gameEvent;
// don't want to clog up the api with unknown events
if (E.Type == GameEvent.EventType.Unknown)
return;

View File

@ -194,6 +194,14 @@ namespace SharedLibraryCore
Target = 4
}
public enum EventSource
{
Unspecified,
Log,
Status,
Internal
}
static long NextEventId;
static long GetNextEventId()
{
@ -214,6 +222,7 @@ namespace SharedLibraryCore
}
public EventType Type;
public EventSource Source { get; set; }
/// <summary>
/// suptype of the event for more detailed classification
/// </summary>
@ -229,7 +238,7 @@ namespace SharedLibraryCore
public EFClient Target;
public EFClient ImpersonationOrigin { get; set; }
public Server Owner;
public bool IsRemote { get; set; } = false;
public bool IsRemote { get; set; }
public object Extra { get; set; }
private readonly ManualResetEvent _eventFinishedWaiter;
public DateTime Time { get; set; }