Exemple #1
0
 public void RemoveById(int roomid)
 {
     for (int i = 0; i < rooms.Count; i++)
     {
         if (rooms[i].RoomId == roomid)
         {
             rooms.RemoveAt(i); break;
         }
     }
     SerializationAndDeserilazationOfRooms.EnterRoom(rooms);
 }
Exemple #2
0
        public void RemoveRoom(Model.Room oldRoom)
        {
            for (int i = 0; i < rooms.Count; i++)
            {
                if (rooms[i].RoomId == oldRoom.RoomId)
                {
                    rooms.RemoveAt(i); break;
                }
            }

            SerializationAndDeserilazationOfRooms.EnterRoom(rooms);
        }
Exemple #3
0
 public void CreateRoom(Room r)
 {
     rooms.Add(r);
     SerializationAndDeserilazationOfRooms.EnterRoom(rooms);
 }