mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-12 08:08:06 -05:00
Additional zombie stast work
This commit is contained in:
@ -24,8 +24,16 @@ public static class EventExtensions
|
||||
{
|
||||
if (token == CancellationToken.None)
|
||||
{
|
||||
// special case to allow tasks like request after delay to run longer
|
||||
await handler(eventArgType, token);
|
||||
try
|
||||
{
|
||||
// special case to allow tasks like request after delay to run longer
|
||||
await handler(eventArgType, token);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// todo: static logger
|
||||
Console.WriteLine("InvokeAsync: " + ex);
|
||||
}
|
||||
}
|
||||
|
||||
using var timeoutToken = new CancellationTokenSource(Utilities.DefaultCommandTimeout);
|
||||
@ -36,9 +44,10 @@ public static class EventExtensions
|
||||
{
|
||||
await handler(eventArgType, tokenSource.Token);
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
// ignored
|
||||
// todo: static logger
|
||||
Console.WriteLine("InvokeAsync: " + ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,5 +4,6 @@ public class PlayerRoundDataGameEvent : ClientGameEvent
|
||||
{
|
||||
public int TotalScore { get; init; }
|
||||
public int CurrentScore { get; init; }
|
||||
public int CurrentRound { get; init; }
|
||||
public bool IsGameOver { get; init; }
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace SharedLibraryCore.Events.Game.GameScript.Zombie;
|
||||
|
||||
public class RoundCompleteGameEvent : GameEventV2
|
||||
public class RoundEndEvent : GameEventV2
|
||||
{
|
||||
public int RoundNumber { get; init; }
|
||||
}
|
Reference in New Issue
Block a user