Пример #1
0
 public void Add(Player Player)
 {
     Players.OrderBy(x => x.ID);
     int FreeID = 1;
     foreach (var Plr in Players)
     {
         if (Plr.ID > FreeID)
         {
             break;
         }
         FreeID = Plr.ID + 1;
     }
     Player.ID = FreeID;
     Players.Add(Player);
 }
Пример #2
0
 public void Remove(Player Player)
 {
     Players.Remove(Player);
 }