示例#1
0
        public void Dump()
        {
            StringBuilder sb = new StringBuilder();

            var dic = m_mapSession.ToDictionary();

            foreach (var pair in dic)
            {
                ISession session = pair.Value;
                sb.AppendLine("\t" + session.ToString());
            }
            Debuger.LogWarning("\nGateway Sessions ({0}):\n{1}", m_mapSession.Count, sb);
        }
示例#2
0
        public void Dump()
        {
            m_gateway.Dump();

            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("\nFSPParam:{0}", m_param.ToString("\t"));
            sb.AppendLine("\nGameList:");

            var listGame = m_mapGame.ToDictionary();

            foreach (var game in listGame)
            {
                sb.AppendFormat("\n\tGame {0}", game.Value.ToString("\t\t"));
            }

            Debuger.LogWarning(sb.ToString());
        }
示例#3
0
        static StaticData()
        {
            _getBoss         = BossList.ToDictionary(t => t.Item1, t => t.Item2);
            _getBossName     = BossList.ToDictionary(t => t.Item1, t => t.Item3);
            _getBossFromType = BossList.ToDictionary(t => t.Item2, t => t.Item3);

            _getMap         = MapList.Select(t => t.Item1).ToArray();
            _getMapName     = MapList.Select(t => t.Item2).ToArray();
            _getMapFromType = MapList.ToDictionary(t => t.Item1, t => t.Item2);

            _getMusic         = MusicList.Select(t => t.Item1).ToArray();
            _getMusicName     = MusicList.Select(t => t.Item2).ToArray();
            _getMusicFromType = MusicList.ToDictionary(t => t.Item1, t => t.Item2);

            _isBossMusic = Enumerable.Range(0, _getMusic.Length).Select(i => BossMusics.Contains(_getMusic[i])).ToArray();
        }