Fix RoundStartTimeSpan not being networked on client-side after reconnecting (#23707)
Fix RoundStartTimeSpan state not being networked on reconnections
This commit is contained in:
@@ -57,6 +57,7 @@ namespace Content.Client.GameTicking.Managers
|
||||
|
||||
SubscribeNetworkEvent<TickerJoinLobbyEvent>(JoinLobby);
|
||||
SubscribeNetworkEvent<TickerJoinGameEvent>(JoinGame);
|
||||
SubscribeNetworkEvent<TickerConnectionStatusEvent>(ConnectionStatus);
|
||||
SubscribeNetworkEvent<TickerLobbyStatusEvent>(LobbyStatus);
|
||||
SubscribeNetworkEvent<TickerLobbyInfoEvent>(LobbyInfo);
|
||||
SubscribeNetworkEvent<TickerLobbyCountdownEvent>(LobbyCountdown);
|
||||
@@ -110,6 +111,11 @@ namespace Content.Client.GameTicking.Managers
|
||||
_stateManager.RequestStateChange<LobbyState>();
|
||||
}
|
||||
|
||||
private void ConnectionStatus(TickerConnectionStatusEvent message)
|
||||
{
|
||||
RoundStartTimeSpan = message.RoundStartTimeSpan;
|
||||
}
|
||||
|
||||
private void LobbyStatus(TickerLobbyStatusEvent message)
|
||||
{
|
||||
StartTime = message.StartTime;
|
||||
|
||||
Reference in New Issue
Block a user