| | |
| | | public bool isCustonHeroFormation = false; |
| | | public List<TeamHero> custonTeamHeroes = new List<TeamHero>(); |
| | | |
| | | |
| | | public Dictionary<int, int> heroStarGuideDic = new Dictionary<int, int>(); |
| | | public override void Init() |
| | | { |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += OnBeforePlayerDataInitialize; |
| | |
| | | teamSortByJob = JsonMapper.ToObject<int[]>(config.Numerical2); |
| | | onekeyGuideID = int.Parse(config.Numerical3); |
| | | onekeyGuidePosList = JsonMapper.ToObject<int[]>(config.Numerical4); |
| | | |
| | | |
| | | config = FuncConfigConfig.Get("Guide"); |
| | | heroStarGuideDic = ConfigParse.ParseIntDict(config.Numerical1); |
| | | |
| | | config = FuncConfigConfig.Get("HeroDelete"); |
| | | jumpDeleteHeroQuality = int.Parse(config.Numerical1); |
| | | isJumpDeleteHero = int.Parse(config.Numerical2) == 1; |
| | | } |
| | | |
| | | public void OnBeforePlayerDataInitialize() |
| | |
| | | } |
| | | } |
| | | |
| | | //某个武将图鉴中是否显示红点 |
| | | public bool IsBookShowRedPoint(int heroID) |
| | | { |
| | | var state = GetHeroBookState(heroID, HeroConfig.Get(heroID).Quality); |
| | | if (state == 1 || state == 3 || state == 4) |
| | | { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | void UpdateHeroBookRedpoint() |
| | | { |
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Hero)) |