Esempio n. 1
0
        internal void UpdateUserServerInfo(int worldId, int userCount)
        {
            UserServerInfo info;

            if (!m_LobbyInfo.UserServerInfos.TryGetValue(worldId, out info))
            {
                info = new UserServerInfo();
                m_LobbyInfo.UserServerInfos.Add(worldId, info);
            }
            info.LastUpdateTime = TimeUtility.GetLocalMilliseconds();
            info.WorldId        = worldId;
            info.UserCount      = userCount;

            LogSys.Log(LOG_TYPE.MONITOR, "UpdateLobbyServerInfo, world id:{0}, user count:{1}", worldId, userCount);
        }
        internal void UpdateUserServerInfo(int worldId, int userCount)
        {
            UserServerInfo info;
            if (!m_LobbyInfo.UserServerInfos.TryGetValue(worldId, out info)) {
                info = new UserServerInfo();
                m_LobbyInfo.UserServerInfos.Add(worldId, info);
            }
            info.LastUpdateTime = TimeUtility.GetLocalMilliseconds();
            info.WorldId = worldId;
            info.UserCount = userCount;

            LogSys.Log(LOG_TYPE.MONITOR, "UpdateLobbyServerInfo, world id:{0}, user count:{1}", worldId, userCount);
        }