少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-13 2df58aeacbf1177ec01167bdeccfe89d6a8d5804
System/Chat/ChatCenter.cs
@@ -53,8 +53,8 @@
        public StringBuilder m_EncodeBuilder = new StringBuilder();
        void ParseConfig()
        {
            chatCharacterLimit = int.Parse(Config.Instance.Get<FuncConfigConfig>("MessageLength").Numerical1);
            var _funcCfg = Config.Instance.Get<FuncConfigConfig>("BugleItem");
            chatCharacterLimit = int.Parse(FuncConfigConfig.Get("MessageLength").Numerical1);
            var _funcCfg = FuncConfigConfig.Get("BugleItem");
            bugleItem = int.Parse(_funcCfg.Numerical1);
            chatChannels = new List<ChatInfoType>();
            chatChannels.Add(ChatInfoType.System);
@@ -67,7 +67,7 @@
            chatChannels.Add(ChatInfoType.Fairy);
            chatChannels.Add(ChatInfoType.Friend);
            var config = Config.Instance.Get<FuncConfigConfig>("ClientChatBan");
            var config = FuncConfigConfig.Get("ClientChatBan");
            banCheckSecond = int.Parse(config.Numerical1);
            repeatCountLimit = int.Parse(config.Numerical2);
            maliceCheckCount = int.Parse(config.Numerical3);
@@ -76,7 +76,7 @@
            singleBanSecond = array[0];
            maxBanSecond = array[1];
            config = Config.Instance.Get<FuncConfigConfig>("LocalChatHistoryCount");
            config = FuncConfigConfig.Get("LocalChatHistoryCount");
            if (config != null)
            {
                LocalChatHistory.localSaveCount = int.Parse(config.Numerical1);
@@ -834,7 +834,7 @@
            try
            {
                var model = ModelCenter.Instance.GetModel<DungeonModel>();
                var realmConfig = Config.Instance.Get<RealmConfig>(realmModel.cacheRealmLv);
                var realmConfig = RealmConfig.Get(realmModel.cacheRealmLv);
                if (model.dungeonResult.leaderID == PlayerDatas.Instance.baseData.PlayerID
                    && realmConfig != null && realmConfig.IsBigRealm == 1)
                {