コード例 #1
0
    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);
        }
    }
コード例 #2
0
ファイル: GameData.cs プロジェクト: ltloibrights/AsyncRPG
    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);
        }
    }
コード例 #3
0
ファイル: GameData.cs プロジェクト: ltloibrights/AsyncRPG
 public bool HasRoomData(RoomKey roomKey)
 {
     return m_roomDataCache.ContainsKey(roomKey.GetHashKey());
 }
コード例 #4
0
ファイル: GameData.cs プロジェクト: ltloibrights/AsyncRPG
    public RoomData GetCachedRoomData(RoomKey roomKey)
    {
        RoomData roomData = null;

        return m_roomDataCache.TryGetValue(roomKey.GetHashKey(), out roomData) ? roomData : null;
    }
コード例 #5
0
    public RoomData GetCachedRoomData(RoomKey roomKey)
    {
        RoomData roomData = null;

        return(m_roomDataCache.TryGetValue(roomKey.GetHashKey(), out roomData) ? roomData : null);
    }
コード例 #6
0
 public bool HasRoomData(RoomKey roomKey)
 {
     return(m_roomDataCache.ContainsKey(roomKey.GetHashKey()));
 }