Ejemplo n.º 1
0
        // Token: 0x06014739 RID: 83769 RVA: 0x00531E34 File Offset: 0x00530034
        protected override bool IsNeedLoadDynamicRes()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsNeedLoadDynamicRes_hotfix != null)
            {
                return(Convert.ToBoolean(this.m_IsNeedLoadDynamicRes_hotfix.call(new object[]
                {
                    this
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            base.ClearAssetList();
            foreach (KeyValuePair <int, ConfigDataCooperateBattleInfo> keyValuePair in configDataLoader.GetAllConfigDataCooperateBattleInfo())
            {
                base.CollectSpriteAsset(keyValuePair.Value.Image);
            }
            foreach (KeyValuePair <int, ConfigDataHeroPhantomInfo> keyValuePair2 in configDataLoader.GetAllConfigDataHeroPhantomInfo())
            {
                base.CollectSpriteAsset(keyValuePair2.Value.Image);
            }
            foreach (KeyValuePair <int, ConfigDataUnchartedScoreInfo> keyValuePair3 in configDataLoader.GetAllConfigDataUnchartedScoreInfo())
            {
                base.CollectSpriteAsset(keyValuePair3.Value.PageImage);
            }
            return(base.IsNeedLoadDynamicRes());
        }
Ejemplo n.º 2
0
        // Token: 0x06011736 RID: 71478 RVA: 0x00485370 File Offset: 0x00483570
        private void InitDataFromUIIntent(UIIntent intent)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitDataFromUIIntentUIIntent_hotfix != null)
            {
                this.m_InitDataFromUIIntentUIIntent_hotfix.call(new object[]
                {
                    this,
                    intent
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            IConfigDataLoader     configDataLoader      = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            this.m_heroPhantomInfo = null;
            UIIntentCustom uiintentCustom = intent as UIIntentCustom;

            if (uiintentCustom != null)
            {
                this.m_heroPhantomInfo = uiintentCustom.GetClassParam <ConfigDataHeroPhantomInfo>("HeroPhantomInfo");
            }
            if (this.m_heroPhantomInfo != null && !projectLPlayerContext.IsHeroPhantomDisplay(this.m_heroPhantomInfo.ID))
            {
                this.m_heroPhantomInfo = null;
            }
            if (this.m_heroPhantomInfo == null)
            {
                foreach (KeyValuePair <int, ConfigDataHeroPhantomInfo> keyValuePair in configDataLoader.GetAllConfigDataHeroPhantomInfo())
                {
                    if (projectLPlayerContext.IsHeroPhantomDisplay(keyValuePair.Key))
                    {
                        this.m_heroPhantomInfo = keyValuePair.Value;
                        break;
                    }
                }
            }
        }