Esempio n. 1
0
 /// <summary>
 /// Adds a player to the lobby's ready players list.
 /// This method also invokes AllPlayersReadyChanged.
 /// </summary>
 /// <param name="player">Id and nickname of the client to add to the lobby</param>
 /// <param name="isReady">Client readiness</param>
 public void AddPlayerToLobby(ConnectedPlayerData player, bool isReady = false)
 {
     AddPlayerToLobby(player.ID, player.Nickname, isReady);
 }
 static public void QueueUserToRemove(ConnectedPlayerData connectedPlayerData,
                                      ConnectedSocketState newState)
 {
     connectedPlayerData.state = newState;
     connectedPlayerData.socket.Close();
 }