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); } }
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); } }