/// <summary> /// Returns amount of clients in that room /// </summary> /// <param name="data">Room to be checked</param> public int getRoomSize(Room room) { return rooms.Find(x => x == room).roomSize; }
/// <summary> /// Removes the specific instance of a room /// </summary> /// <param name="Room">Room to be removed</param> public void removeRoom(Room room) { rooms.Remove(room); }
/// <summary> /// Starts the client /// </summary> /// <param name="client">Object containing the client</param> public Client(object client, RoomManager roommanager) { TCPClient = (TcpClient)client; rm = RoomManager.Instance; room = rm.moveClient(this); }