Exemple #1
0
        public static void End(bool Round)
        {
            Started = false;

            foreach (TeamStruct t in Teams.Values)
            {
                t.atWar = false;
                if (Winner != null)
                {
                    if (Winner.Kills < t.Kills && Winner.Wins < t.Wins && t.atWar)
                    {
                        Winner = t;
                    }
                }

                t.Remove(false);
            }

            if (!Round)
            {
                foreach (Client.GameState e in ServerBase.Kernel.GamePool.Values)
                {
                    e.Send(new Network.GamePackets.Message("The team war has end for today. See you all in the next time!", System.Drawing.Color.White, 2011));
                }
            }
        }
Exemple #2
0
 public static void Remove(TeamStruct t)
 {
     if (Teams.ContainsKey(t.UID))
     {
         Teams.Remove(t.UID);
         t.Remove(true);
     }
     else t.Remove(true);
 }