internal void OnPlayerJoined(MockClientCommunicator client, string playerName)
 {
     if (!this.clientList.Contains(playerName))
     {
         this.clientList.Add(playerName);
         this.PlayerJoined(this, new PlayerEventArgs { PlayerName = playerName });
         client.OnHostJoinStatusMessageReceived(true);
     }
     else
     {
         client.OnHostJoinStatusMessageReceived(false);
     }
 }
Beispiel #2
0
 internal void OnPlayerJoined(MockClientCommunicator client, string playerName)
 {
     if (!this.clientList.Contains(playerName))
     {
         this.clientList.Add(playerName);
         this.PlayerJoined(this, new PlayerEventArgs {
             PlayerName = playerName
         });
         client.OnHostJoinStatusMessageReceived(true);
     }
     else
     {
         client.OnHostJoinStatusMessageReceived(false);
     }
 }