Automatic server replay recordings (#18235)

Co-authored-by: Moony <moony@hellomouse.net>
This commit is contained in:
Pieter-Jan Briers
2023-07-23 16:02:23 +02:00
committed by GitHub
parent 3f12b2816c
commit c6d2dd6c7b
4 changed files with 139 additions and 2 deletions

View File

@@ -170,6 +170,8 @@ namespace Content.Server.GameTicking
_startingRound = true;
ReplayStartRound();
DebugTools.Assert(RunLevel == GameRunLevel.PreRoundLobby);
_sawmill.Info("Starting round!");
@@ -365,6 +367,8 @@ namespace Content.Server.GameTicking
if (DummyTicker)
return;
ReplayEndRound();
// Handle restart for server update
if (_serverUpdates.RoundEnded())
return;