Refactor lobby status (#10550)

This commit is contained in:
wrexbe
2022-08-14 12:54:49 -07:00
committed by GitHub
parent c535214aa2
commit c4d135e253
15 changed files with 126 additions and 108 deletions

View File

@@ -97,9 +97,9 @@ namespace Content.Shared.GameTicking
/// <summary>
/// The Status of the Player in the lobby (ready, observer, ...)
/// </summary>
public Dictionary<NetUserId, LobbyPlayerStatus> Status { get; }
public Dictionary<NetUserId, PlayerGameStatus> Status { get; }
public TickerLobbyReadyEvent(Dictionary<NetUserId, LobbyPlayerStatus> status)
public TickerLobbyReadyEvent(Dictionary<NetUserId, PlayerGameStatus> status)
{
Status = status;
}
@@ -168,11 +168,11 @@ namespace Content.Shared.GameTicking
[Serializable, NetSerializable]
public enum LobbyPlayerStatus : sbyte
public enum PlayerGameStatus : sbyte
{
NotReady = 0,
Ready,
Observer,
NotReadyToPlay = 0,
ReadyToPlay,
JoinedGame,
}
}