public void SetCachedRoomData(RoomKey roomKey, RoomData roomData) { string roomKeyString = roomKey.GetHashKey(); if (m_roomDataCache.ContainsKey(roomKeyString)) { m_roomDataCache[roomKeyString] = roomData; } else { m_roomDataCache.Add(roomKeyString, roomData); } }
public bool HasRoomData(RoomKey roomKey) { return m_roomDataCache.ContainsKey(roomKey.GetHashKey()); }
public RoomData GetCachedRoomData(RoomKey roomKey) { RoomData roomData = null; return m_roomDataCache.TryGetValue(roomKey.GetHashKey(), out roomData) ? roomData : null; }
public RoomData GetCachedRoomData(RoomKey roomKey) { RoomData roomData = null; return(m_roomDataCache.TryGetValue(roomKey.GetHashKey(), out roomData) ? roomData : null); }
public bool HasRoomData(RoomKey roomKey) { return(m_roomDataCache.ContainsKey(roomKey.GetHashKey())); }