コード例 #1
0
ファイル: lobbyServer.cs プロジェクト: joshwilding4444/FFPP
 public void newLobbyPlayer(clientPlayer newPlayer)
 {
     foreach (clientPlayer p in totalAssociatedPlayers)
     {
         if (newPlayer == p)
         {
             return; //The player already exists
         }
     }
     totalAssociatedPlayers.SetValue(newPlayer, totalAssociatedPlayers.GetUpperBound(1) + 1);
 }
コード例 #2
0
ファイル: lobbyServer.cs プロジェクト: joshwilding4444/FFPP
 public void playerJoinGame(clientPlayer newPlayer)
 {
     foreach (clientPlayer p in associatedPlayers)
     {
         if (newPlayer == p)
         {
             return; //player is already in game
         }
     }
     associatedPlayers.SetValue(newPlayer, associatedPlayers.GetUpperBound(1) + 1);
 }