fix: de golmon

This commit is contained in:
starnakin 2023-12-23 18:36:16 +01:00
parent 58f6214ad0
commit 88aca3a54b

View File

@ -5,14 +5,8 @@ class AbstractRoomManager:
def __init__(self): def __init__(self):
self._room_list: [AbstractRoom] = [] self._room_list: [AbstractRoom] = []
def get(self, mode: int): def remove(self, room: AbstractRoom):
for room in self._room_list: self._room_list.remove(room)
room: A
if (waiting_room._mode == mode):
return waiting_room
tmp: WaitingRoom = WaitingRoom(self, mode)
self._waiting_rooms.append(tmp)
return tmp
def remove(self, waiting_room: WaitingRoom): def append(self, room: AbstractRoom):
self._waiting_rooms.remove(waiting_room) self._room_list.append(room)