fix: de golmon
This commit is contained in:
parent
58f6214ad0
commit
88aca3a54b
@ -5,14 +5,8 @@ class AbstractRoomManager:
|
||||
def __init__(self):
|
||||
self._room_list: [AbstractRoom] = []
|
||||
|
||||
def get(self, mode: int):
|
||||
for room in self._room_list:
|
||||
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, room: AbstractRoom):
|
||||
self._room_list.remove(room)
|
||||
|
||||
def remove(self, waiting_room: WaitingRoom):
|
||||
self._waiting_rooms.remove(waiting_room)
|
||||
def append(self, room: AbstractRoom):
|
||||
self._room_list.append(room)
|
||||
|
Loading…
Reference in New Issue
Block a user