Add NukeOps Test (#27207)
* Add NukeOps Test * Update EvacShuttleTest to also check mapinit * Update RuleMaxTimeRestartTest * Fix cvar cleanup * A * Revert some changes * comments * Add MappingTests * Finally fix the test * A
This commit is contained in:
@@ -33,6 +33,7 @@ public sealed class MaxTimeRestartRuleSystem : GameRuleSystem<MaxTimeRestartRule
|
||||
|
||||
public void RestartTimer(MaxTimeRestartRuleComponent component)
|
||||
{
|
||||
// TODO FULL GAME SAVE
|
||||
component.TimerCancel.Cancel();
|
||||
component.TimerCancel = new CancellationTokenSource();
|
||||
Timer.Spawn(component.RoundMaxTime, () => TimerFired(component), component.TimerCancel.Token);
|
||||
@@ -49,6 +50,7 @@ public sealed class MaxTimeRestartRuleSystem : GameRuleSystem<MaxTimeRestartRule
|
||||
|
||||
_chatManager.DispatchServerAnnouncement(Loc.GetString("rule-restarting-in-seconds",("seconds", (int) component.RoundEndDelay.TotalSeconds)));
|
||||
|
||||
// TODO FULL GAME SAVE
|
||||
Timer.Spawn(component.RoundEndDelay, () => GameTicker.RestartRound());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user