tidy readiness checks in lobby

This commit is contained in:
Chris Forbes
2011-11-01 21:42:54 +13:00
parent 53599f062c
commit eaa4d06052
3 changed files with 25 additions and 29 deletions

View File

@@ -37,12 +37,7 @@ namespace OpenRA.Network
return Slots.FirstOrDefault(s => !s.Value.Closed && ClientInSlot(s.Key) == null).Key;
}
public enum ClientState
{
NotReady,
Ready,
Disconnected = 1000
}
public enum ClientState { NotReady, Ready, Disconnected = 1000 }
public class Client
{
@@ -55,6 +50,8 @@ namespace OpenRA.Network
public int Team;
public string Slot; // slot ID, or null for observer
public string Bot; // Bot type, null for real clients
public bool IsReady { get { return State == ClientState.Ready; } }
}
public class Slot