|
@@ -7,18 +7,18 @@ public static class GameRoomComponentSystem
|
|
|
{
|
|
|
public static void Add(this GameRoomComponent self, Room room)
|
|
|
{
|
|
|
- self.idRooms.Add(room.Id, room);
|
|
|
+ self.idRooms.Add(room.RoomId, room);
|
|
|
}
|
|
|
|
|
|
- public static Room Get(this GameRoomComponent self, long id)
|
|
|
+ public static Room Get(this GameRoomComponent self, string roomId)
|
|
|
{
|
|
|
- self.idRooms.TryGetValue(id, out Room room);
|
|
|
+ self.idRooms.TryGetValue(roomId, out Room room);
|
|
|
return room;
|
|
|
}
|
|
|
|
|
|
- public static void Remove(this GameRoomComponent self, long id)
|
|
|
+ public static void Remove(this GameRoomComponent self, string roomId)
|
|
|
{
|
|
|
- self.idRooms.Remove(id);
|
|
|
+ self.idRooms.Remove(roomId);
|
|
|
}
|
|
|
|
|
|
public static Room[] GetAll(this GameRoomComponent self)
|