Refactor lobby status (#10550)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user