Changed duration to use TimeSpan.

Using actual round realtime span to determine round length.
This commit is contained in:
scuffedjays
2020-04-14 23:26:37 -05:00
parent 18e10e289e
commit 1605a50098
4 changed files with 23 additions and 10 deletions

View File

@@ -206,8 +206,9 @@ namespace Content.Server.GameTicking
var roundEndMessage = _netManager.CreateNetMessage<MsgRoundEndMessage>();
roundEndMessage.GamemodeTitle = MakeGamePreset().ModeTitle;
//TODO:Grab actual timespan of round.
roundEndMessage.DurationInHours = 1337;
//Get the timespan of the round.
var gameTime = IoCManager.Resolve<IGameTiming>();
roundEndMessage.RoundDuration = gameTime.RealTime;
//Generate a list of basic player info to display in the end round summary.
var listOfPlayerInfo = new List<RoundEndPlayerInfo>();