예제 #1
0
 internal void JoinRed(TSPlayer player)
 {
     if (!allPlayers.Contains(player.Index))
     {
         allPlayers.Add(player.Index);
     }
     RedTeam.RemoveAll(p => p.Index == player.Index);
     BlueTeam.RemoveAll(p => p.Index == player.Index);
     RedTeam.Add(player);
     Main.player[player.Index].team = 1;
     player.SendInfoMessage("You have joined Red team for Class Wars.");
 }
예제 #2
0
 internal void GTFO(TSPlayer player)
 {
     allPlayers.RemoveAll(p => p == player.Index);
     RedTeam.RemoveAll(p => p.Index == player.Index);
     BlueTeam.RemoveAll(p => p.Index == player.Index);
 }