| | |
| | | using System.Text; |
| | | using System; |
| | | using System.Text.RegularExpressions; |
| | | using vnxbqy.UI; |
| | | |
| | | using System.Linq; |
| | | |
| | |
| | | presentChatType = ChatInfoType.World; |
| | | IsExtentOpen = false; |
| | | |
| | | var _funcCfg = FuncConfigConfig.Get("BugleItem"); |
| | | BugleItem = int.Parse(_funcCfg.Numerical1); |
| | | // var _funcCfg = FuncConfigConfig.Get("BugleItem"); |
| | | // BugleItem = int.Parse(_funcCfg.Numerical1); |
| | | |
| | | DTC0102_tagCDBPlayer.switchAccountEvent += SwitchAccountEvent; |
| | | // TODO YYL |
| | |
| | | |
| | | InitChatRedpoints(); |
| | | |
| | | FuncConfigConfig _cfg = FuncConfigConfig.Get("RandomWord"); |
| | | try |
| | | { |
| | | achievementRandoms.Add(ChatInfoType.World, new List<string>(ConfigParse.GetMultipleStr(_cfg.Numerical1))); |
| | | achievementRandoms.Add(ChatInfoType.Fairy, new List<string>(ConfigParse.GetMultipleStr(_cfg.Numerical2))); |
| | | var json = LitJson.JsonMapper.ToObject(_cfg.Numerical3); |
| | | foreach (var key in json.Keys) |
| | | { |
| | | var type = int.Parse(key); |
| | | m_TaskRandomChats.Add(type, new List<string>(LitJson.JsonMapper.ToObject<string[]>(json[key].ToJson()))); |
| | | } |
| | | assistThankLanguages.AddRange(ConfigParse.GetMultipleStr(_cfg.Numerical4)); |
| | | if (!string.IsNullOrEmpty(_cfg.Numerical5)) |
| | | { |
| | | var levelArray = ConfigParse.GetMultipleStr<int>(_cfg.Numerical5); |
| | | assistThankLevelLimit = new Int2(levelArray[0], levelArray[1]); |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | Debug.LogError(e.Message); |
| | | } |
| | | // FuncConfigConfig _cfg = FuncConfigConfig.Get("RandomWord"); |
| | | // try |
| | | // { |
| | | // achievementRandoms.Add(ChatInfoType.World, new List<string>(ConfigParse.GetMultipleStr(_cfg.Numerical1))); |
| | | // achievementRandoms.Add(ChatInfoType.Fairy, new List<string>(ConfigParse.GetMultipleStr(_cfg.Numerical2))); |
| | | // var json = LitJson.JsonMapper.ToObject(_cfg.Numerical3); |
| | | // foreach (var key in json.Keys) |
| | | // { |
| | | // var type = int.Parse(key); |
| | | // m_TaskRandomChats.Add(type, new List<string>(LitJson.JsonMapper.ToObject<string[]>(json[key].ToJson()))); |
| | | // } |
| | | // assistThankLanguages.AddRange(ConfigParse.GetMultipleStr(_cfg.Numerical4)); |
| | | // if (!string.IsNullOrEmpty(_cfg.Numerical5)) |
| | | // { |
| | | // var levelArray = ConfigParse.GetMultipleStr<int>(_cfg.Numerical5); |
| | | // assistThankLevelLimit = new Int2(levelArray[0], levelArray[1]); |
| | | // } |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // Debug.LogError(e.Message); |
| | | // } |
| | | } |
| | | |
| | | private void PlayerLoginOkEvent() |
| | |
| | | } |
| | | else |
| | | { |
| | | return Language.Get(dungeonRandomChats[1], PlayerDatas.Instance.baseData.FightPoint); |
| | | return Language.Get(dungeonRandomChats[1], PlayerDatas.Instance.baseData.FightPower); |
| | | } |
| | | case ChatInfoType.Fairy: |
| | | return Language.Get(realmRandomChats[_index]); |