internal bool setClientReady(LobbyClient lc, bool readyP) { //Safety Check foreach (LobbyClient client in getListOfClients()) { if (client.getLobbyClientGuid().CompareTo(lc.getLobbyClientGuid()) == 0) { client.setIfReadyToStart(readyP); return(true); } } return(false); }
/// <summary> /// Client calls connect to lobby to be assigned a Guid so it can join games /// </summary> /// <returns>Guid of client to be used in calls to service /// </returns> public Guid connectToLobby(string name) { LobbyClient newClient = setUpNewLobbyClient(name); return(newClient.getLobbyClientGuid()); }
internal bool setClientReady(LobbyClient lc, bool readyP) { //Safety Check foreach (LobbyClient client in getListOfClients()) { if (client.getLobbyClientGuid().CompareTo(lc.getLobbyClientGuid()) == 0) { client.setIfReadyToStart(readyP); return true; } } return false; }