Add evac shuttle test. (#27152)

* Add evac shuttle test.

* Fix typo in comment
This commit is contained in:
Leon Friedrich
2024-04-20 17:57:55 +12:00
committed by GitHub
parent 4594700d19
commit 12bb476a2d
7 changed files with 138 additions and 19 deletions

View File

@@ -192,6 +192,8 @@ namespace Content.Server.RoundEnd
LastCountdownStart = _gameTiming.CurTime;
ExpectedCountdownEnd = _gameTiming.CurTime + countdownTime;
// TODO full game saves
Timer.Spawn(countdownTime, _shuttle.CallEmergencyShuttle, _countdownTokenSource.Token);
ActivateCooldown();
@@ -337,6 +339,8 @@ namespace Content.Server.RoundEnd
{
_cooldownTokenSource?.Cancel();
_cooldownTokenSource = new();
// TODO full game saves
Timer.Spawn(DefaultCooldownDuration, () =>
{
_cooldownTokenSource.Cancel();