1
0
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:
RaidMax
2024-02-11 22:10:12 -06:00
parent 122b6dc79d
commit e1461582fa
45 changed files with 7663 additions and 292 deletions

View File

@ -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);
}
}
}

View File

@ -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; }
}

View File

@ -1,6 +1,6 @@
namespace SharedLibraryCore.Events.Game.GameScript.Zombie;
public class RoundCompleteGameEvent : GameEventV2
public class RoundEndEvent : GameEventV2
{
public int RoundNumber { get; init; }
}