// Token: 0x060049B2 RID: 18866 RVA: 0x001701A4 File Offset: 0x0016E3A4
        public int AttackTreasureLevel(int levelId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AttackTreasureLevelInt32_hotfix != null)
            {
                return(Convert.ToInt32(this.m_AttackTreasureLevelInt32_hotfix.call(new object[]
                {
                    this,
                    levelId
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int num = this.CanAttackTreasureLevel(levelId);

            if (num != 0)
            {
                if (num == -900)
                {
                    this.m_battle.FightFinished(GameFunctionStatus.Error, false, true);
                }
                return(num);
            }
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = this.m_configDataLoader.GetConfigDataTreasureLevelInfo(levelId);

            this.m_basicInfo.DecreaseEnergy(configDataTreasureLevelInfo.EnergyFail, GameFunctionType.GameFunctionType_TreasureMap, levelId.ToString());
            if (configDataTreasureLevelInfo.TicketCost > 0)
            {
                int         ticketId = this.m_bag.GetTicketId(GameFunctionType.GameFunctionType_TreasureMap);
                BagItemBase bagItem  = this.m_bag.FindBagItemByType(GoodsType.GoodsType_Item, ticketId);
                this.m_bag.RemoveBagItemDirectly(bagItem, configDataTreasureLevelInfo.TicketCost, GameFunctionType.GameFunctionType_TreasureMap, levelId.ToString());
            }
            this.m_battle.SetProcessingBattleInfo(BattleType.TreasureMap, levelId);
            return(0);
        }
Ejemplo n.º 2
0
        // Token: 0x06007803 RID: 30723 RVA: 0x0020B420 File Offset: 0x00209620
        public int FinishedTreasureLevel(int levelId, bool isWin, List <int> battleTreasureIds)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_FinishedTreasureLevelInt32BooleanList ` 1_hotfix != null)
            {
                return(Convert.ToInt32(this.m_FinishedTreasureLevelInt32BooleanList ` 1_hotfix.call(new object[]
                {
                    this,
                    levelId,
                    isWin,
                    battleTreasureIds
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = this.m_configDataLoader.GetConfigDataTreasureLevelInfo(levelId);

            if (configDataTreasureLevelInfo == null)
            {
                this.m_battle.FightFinished(GameFunctionStatus.Error, false, true);
                return(-2601);
            }
            if (isWin)
            {
                this.SetSuccessTreasureMapLevel(configDataTreasureLevelInfo, battleTreasureIds);
            }
            this.m_battle.FightFinished(GameFunctionStatus.End, isWin, true);
            return(0);
        }
Ejemplo n.º 3
0
        // Token: 0x06014423 RID: 82979 RVA: 0x005271A0 File Offset: 0x005253A0
        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, ConfigDataTreasureLevelInfo> keyValuePair in configDataLoader.GetAllConfigDataTreasureLevelInfo())
            {
                ConfigDataTreasureLevelInfo value = keyValuePair.Value;
                base.CollectSpriteAsset(value.IconResource);
                foreach (Goods goods in value.RewardList)
                {
                    base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods.GoodsType, goods.Id));
                }
            }
            base.CollectAsset("Spine/General/Goblin_ABS/Goblin_1_Prefab.prefab");
            base.CollectAsset("Spine/General/Goblin_ABS/Goblin_2_Prefab.prefab");
            base.CollectAsset("Spine/General/Goblin_ABS/Goblin_3_Prefab.prefab");
            base.CollectAsset("Spine/General/Goblin_ABS/Goblin_4_Prefab.prefab");
            return(base.IsNeedLoadDynamicRes());
        }
        // Token: 0x060049B6 RID: 18870 RVA: 0x00170508 File Offset: 0x0016E708
        protected virtual void SetSuccessTreasureMapLevel(ConfigDataTreasureLevelInfo levelInfo, List <int> battleTreasures)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessTreasureMapLevelConfigDataTreasureLevelInfoList ` 1_hotfix != null)
            {
                this.m_SetSuccessTreasureMapLevelConfigDataTreasureLevelInfoList ` 1_hotfix.call(new object[]
                {
                    this,
                    levelInfo,
                    battleTreasures
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_battle.AddBattleTreasures(battleTreasures);
            this.m_basicInfo.AddPlayerExp(levelInfo.PlayerExp);
            this.m_basicInfo.DecreaseEnergy(levelInfo.EnergySuccess - levelInfo.EnergyFail, GameFunctionType.GameFunctionType_TreasureMap, levelInfo.ID.ToString());
            this.OnFinishedLevel(levelInfo.ID);
            List <int> pveTeam = this.m_battle.GetPveTeam();

            this.m_battle.AddFightHeroFightNumsAndExp(pveTeam, 0);
            this.m_battle.WinPveBattle(levelInfo.Battle_ID);
            if (this.CompleteTreasureMapMissionEvent != null)
            {
                this.CompleteTreasureMapMissionEvent(BattleType.TreasureMap, levelInfo.ID, pveTeam);
            }
        }
Ejemplo n.º 5
0
        // Token: 0x06014393 RID: 82835 RVA: 0x00525900 File Offset: 0x00523B00
        private void __callDele_EventOnStartTreasureLevel(ConfigDataTreasureLevelInfo obj)
        {
            Action <ConfigDataTreasureLevelInfo> eventOnStartTreasureLevel = this.EventOnStartTreasureLevel;

            if (eventOnStartTreasureLevel != null)
            {
                eventOnStartTreasureLevel(obj);
            }
        }
Ejemplo n.º 6
0
    public static int get_m_battleInfo(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, configDataTreasureLevelInfo.m_battleInfo);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 7
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo o = new ConfigDataTreasureLevelInfo();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 8
0
        // Token: 0x06007804 RID: 30724 RVA: 0x0020B500 File Offset: 0x00209700
        protected override void SetSuccessTreasureMapLevel(ConfigDataTreasureLevelInfo levelInfo, List <int> battleTreasures)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessTreasureMapLevelConfigDataTreasureLevelInfoList ` 1_hotfix != null)
            {
                this.m_SetSuccessTreasureMapLevelConfigDataTreasureLevelInfoList ` 1_hotfix.call(new object[]
                {
                    this,
                    levelInfo,
                    battleTreasures
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.SetSuccessTreasureMapLevel(levelInfo, battleTreasures);
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = levelInfo.PlayerExp;
        }
Ejemplo n.º 9
0
    public static int set_IconResource(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            string iconResource;
            LuaObject.checkType(l, 2, out iconResource);
            configDataTreasureLevelInfo.IconResource = iconResource;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 10
0
    public static int set_Strategy(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            string strategy;
            LuaObject.checkType(l, 2, out strategy);
            configDataTreasureLevelInfo.Strategy = strategy;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 11
0
    public static int set_HeroExp(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            int heroExp;
            LuaObject.checkType(l, 2, out heroExp);
            configDataTreasureLevelInfo.HeroExp = heroExp;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 12
0
    public static int set_m_banditInfos(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            List <ConfigDataBanditInfo> banditInfos;
            LuaObject.checkType <List <ConfigDataBanditInfo> >(l, 2, out banditInfos);
            configDataTreasureLevelInfo.m_banditInfos = banditInfos;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 13
0
    public static int set_MonsterLevel(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            int monsterLevel;
            LuaObject.checkType(l, 2, out monsterLevel);
            configDataTreasureLevelInfo.MonsterLevel = monsterLevel;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 14
0
    public static int set_Battle_ID(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            int battle_ID;
            LuaObject.checkType(l, 2, out battle_ID);
            configDataTreasureLevelInfo.Battle_ID = battle_ID;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 15
0
    public static int set_TicketCost(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            int ticketCost;
            LuaObject.checkType(l, 2, out ticketCost);
            configDataTreasureLevelInfo.TicketCost = ticketCost;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 16
0
    public static int set_EnergySuccess(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = (ConfigDataTreasureLevelInfo)LuaObject.checkSelf(l);
            int energySuccess;
            LuaObject.checkType(l, 2, out energySuccess);
            configDataTreasureLevelInfo.EnergySuccess = energySuccess;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 17
0
 // Token: 0x060143E3 RID: 82915 RVA: 0x0052680C File Offset: 0x00524A0C
 public void SetLocked(bool locked, ConfigDataTreasureLevelInfo levelnfo)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetLockedBooleanConfigDataTreasureLevelInfo_hotfix != null)
     {
         this.m_SetLockedBooleanConfigDataTreasureLevelInfo_hotfix.call(new object[]
         {
             this,
             locked,
             levelnfo
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     if (locked)
     {
         IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;
         this.m_lockedText.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Msg_AchieveLevelOpen), levelnfo.OpenPlayerLevel);
     }
     this.m_lockedButton.gameObject.SetActive(locked);
 }
Ejemplo n.º 18
0
        // Token: 0x0601436E RID: 82798 RVA: 0x00524F88 File Offset: 0x00523188
        public void AddTreasureLevelButton(ConfigDataTreasureLevelInfo levelnfo, bool opened)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AddTreasureLevelButtonConfigDataTreasureLevelInfoBoolean_hotfix != null)
            {
                this.m_AddTreasureLevelButtonConfigDataTreasureLevelInfoBoolean_hotfix.call(new object[]
                {
                    this,
                    levelnfo,
                    opened
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObject go = UnityEngine.Object.Instantiate <GameObject>(this.m_treasureLevelListItemPrefab, this.m_levelListScrollRect.content, false);
            TreasureLevelListItemUIController treasureLevelListItemUIController = GameObjectUtility.AddControllerToGameObject <TreasureLevelListItemUIController>(go);

            treasureLevelListItemUIController.SetTreasureLevelInfo(levelnfo);
            treasureLevelListItemUIController.SetLocked(!opened, levelnfo);
            treasureLevelListItemUIController.EventOnStartButtonClick += this.ThreasureLevelListItem_OnStartButtonClick;
            this.m_treasureLevelListItems.Add(treasureLevelListItemUIController);
        }
Ejemplo n.º 19
0
        // Token: 0x060143E1 RID: 82913 RVA: 0x00526690 File Offset: 0x00524890
        public void SetTreasureLevelInfo(ConfigDataTreasureLevelInfo levelInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetTreasureLevelInfoConfigDataTreasureLevelInfo_hotfix != null)
            {
                this.m_SetTreasureLevelInfoConfigDataTreasureLevelInfo_hotfix.call(new object[]
                {
                    this,
                    levelInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_treasureLevelInfo       = levelInfo;
            this.m_levelText.text          = levelInfo.MonsterLevel.ToString();
            this.m_energyText.text         = levelInfo.EnergySuccess.ToString();
            this.m_ticketText.text         = levelInfo.TicketCost.ToString();
            GameObjectUtility.DestroyChildren(this.m_rewardGroupGameObject);
            GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods");

            RewardGoodsUIController.CreateRewardGoodsList(levelInfo.RewardList, this.m_rewardGroupGameObject.transform, assetInContainer, null, false, 0, true);
        }
        // Token: 0x060049B5 RID: 18869 RVA: 0x00170440 File Offset: 0x0016E640
        private int CanAttackLevelByEnergyAndSoOn(ConfigDataTreasureLevelInfo levelInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanAttackLevelByEnergyAndSoOnConfigDataTreasureLevelInfo_hotfix != null)
            {
                return(Convert.ToInt32(this.m_CanAttackLevelByEnergyAndSoOnConfigDataTreasureLevelInfo_hotfix.call(new object[]
                {
                    this,
                    levelInfo
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int ticketId = this.m_bag.GetTicketId(GameFunctionType.GameFunctionType_TreasureMap);

            if (!this.m_bag.IsBagItemEnough(GoodsType.GoodsType_Item, ticketId, levelInfo.TicketCost))
            {
                return(-2600);
            }
            if (!this.m_basicInfo.IsEnergyEnough(levelInfo.EnergySuccess))
            {
                return(-402);
            }
            return(0);
        }
        // Token: 0x060049B4 RID: 18868 RVA: 0x0017034C File Offset: 0x0016E54C
        public virtual int CanAttackTreasureLevel(int leveId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanAttackTreasureLevelInt32_hotfix != null)
            {
                return(Convert.ToInt32(this.m_CanAttackTreasureLevelInt32_hotfix.call(new object[]
                {
                    this,
                    leveId
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (!this.IsGameFunctionOpened())
            {
                return(-2603);
            }
            ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = this.m_configDataLoader.GetConfigDataTreasureLevelInfo(leveId);

            if (configDataTreasureLevelInfo == null)
            {
                return(-2601);
            }
            if (configDataTreasureLevelInfo.m_battleInfo == null)
            {
                return(-2602);
            }
            if (this.m_battle.IsFighting())
            {
                return(-900);
            }
            int level = this.m_basicInfo.GetLevel();

            if (level < configDataTreasureLevelInfo.OpenPlayerLevel)
            {
                return(-413);
            }
            return(this.CanAttackLevelByEnergyAndSoOn(configDataTreasureLevelInfo));
        }
Ejemplo n.º 22
0
        // Token: 0x0601442C RID: 82988 RVA: 0x005278B8 File Offset: 0x00525AB8
        private void TreasureMapUIcontroller_OnStartTreasureLevel(ConfigDataTreasureLevelInfo levelInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_TreasureMapUIcontroller_OnStartTreasureLevelConfigDataTreasureLevelInfo_hotfix != null)
            {
                this.m_TreasureMapUIcontroller_OnStartTreasureLevelConfigDataTreasureLevelInfo_hotfix.call(new object[]
                {
                    this,
                    levelInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanAttackTreasureLevel(levelInfo.ID);

            if (num == 0)
            {
                WorldUITask.StartBattleHappening(BattleType.TreasureMap, levelInfo.ID);
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }
 // Token: 0x060049D1 RID: 18897 RVA: 0x00170C5C File Offset: 0x0016EE5C
 public void SetSuccessTreasureMapLevel(ConfigDataTreasureLevelInfo levelInfo, List <int> battleTreasures)
 {
     this.m_owner.SetSuccessTreasureMapLevel(levelInfo, battleTreasures);
 }
 // Token: 0x060049D0 RID: 18896 RVA: 0x00170C4C File Offset: 0x0016EE4C
 public int CanAttackLevelByEnergyAndSoOn(ConfigDataTreasureLevelInfo levelInfo)
 {
     return(this.m_owner.CanAttackLevelByEnergyAndSoOn(levelInfo));
 }
Ejemplo n.º 25
0
        // Token: 0x0600403F RID: 16447 RVA: 0x0012AAF0 File Offset: 0x00128CF0
        public int CanPostLevelDanmaku(int gameFunctionTypeId, int locationId, List <PostDanmakuEntry> entries)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanPostLevelDanmakuInt32Int32List ` 1_hotfix != null)
            {
                return(Convert.ToInt32(this.m_CanPostLevelDanmakuInt32Int32List ` 1_hotfix.call(new object[]
                {
                    this,
                    gameFunctionTypeId,
                    locationId,
                    entries
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int battle_ID;

            switch (gameFunctionTypeId)
            {
            case 9:
            {
                ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(locationId);
                if (configDataRiftLevelInfo == null)
                {
                    return(-2701);
                }
                battle_ID = configDataRiftLevelInfo.Battle_ID;
                break;
            }

            case 10:
            {
                ConfigDataScenarioInfo configDataScenarioInfo = this.m_configDataLoader.GetConfigDataScenarioInfo(locationId);
                if (configDataScenarioInfo == null)
                {
                    return(-2701);
                }
                battle_ID = configDataScenarioInfo.Battle_ID;
                break;
            }

            case 11:
            {
                ConfigDataEventInfo configDataEventInfo = this.m_configDataLoader.GetConfigDataEventInfo(locationId);
                if (configDataEventInfo == null)
                {
                    return(-2701);
                }
                battle_ID = configDataEventInfo.Battle_ID;
                break;
            }

            case 12:
            {
                ConfigDataAnikiLevelInfo configDataAnikiLevelInfo = this.m_configDataLoader.GetConfigDataAnikiLevelInfo(locationId);
                if (configDataAnikiLevelInfo == null)
                {
                    return(-2701);
                }
                battle_ID = configDataAnikiLevelInfo.Battle_ID;
                break;
            }

            case 13:
            {
                ConfigDataThearchyTrialLevelInfo configDataThearchyTrialLevelInfo = this.m_configDataLoader.GetConfigDataThearchyTrialLevelInfo(locationId);
                if (configDataThearchyTrialLevelInfo == null)
                {
                    return(-2701);
                }
                battle_ID = configDataThearchyTrialLevelInfo.Battle_ID;
                break;
            }

            default:
                if (gameFunctionTypeId != 41)
                {
                    if (gameFunctionTypeId != 42)
                    {
                        if (gameFunctionTypeId != 56)
                        {
                            if (gameFunctionTypeId != 57)
                            {
                                if (gameFunctionTypeId != 79)
                                {
                                    if (gameFunctionTypeId != 80)
                                    {
                                        if (gameFunctionTypeId != 28)
                                        {
                                            if (gameFunctionTypeId != 51)
                                            {
                                                return(-2700);
                                            }
                                            ConfigDataHeroTrainningLevelInfo configDataHeroTrainningLevelInfo = this.m_configDataLoader.GetConfigDataHeroTrainningLevelInfo(locationId);
                                            if (configDataHeroTrainningLevelInfo == null)
                                            {
                                                return(-2701);
                                            }
                                            battle_ID = configDataHeroTrainningLevelInfo.Battle_ID;
                                        }
                                        else
                                        {
                                            ConfigDataHeroDungeonLevelInfo configDataHeroDungeonLevelInfo = this.m_configDataLoader.GetConfigDataHeroDungeonLevelInfo(locationId);
                                            if (configDataHeroDungeonLevelInfo == null)
                                            {
                                                return(-2701);
                                            }
                                            battle_ID = configDataHeroDungeonLevelInfo.Battle_ID;
                                        }
                                    }
                                    else
                                    {
                                        ConfigDataScoreLevelInfo configDataScoreLevelInfo = this.m_configDataLoader.GetConfigDataScoreLevelInfo(locationId);
                                        if (configDataScoreLevelInfo == null)
                                        {
                                            return(-2701);
                                        }
                                        battle_ID = configDataScoreLevelInfo.Battle_ID;
                                    }
                                }
                                else
                                {
                                    ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = this.m_configDataLoader.GetConfigDataChallengeLevelInfo(locationId);
                                    if (configDataChallengeLevelInfo == null)
                                    {
                                        return(-2701);
                                    }
                                    battle_ID = configDataChallengeLevelInfo.Battle_ID;
                                }
                            }
                            else
                            {
                                ConfigDataCooperateBattleLevelInfo configDataCooperateBattleLevelInfo = this.m_configDataLoader.GetConfigDataCooperateBattleLevelInfo(locationId);
                                if (configDataCooperateBattleLevelInfo == null)
                                {
                                    return(-2701);
                                }
                                battle_ID = configDataCooperateBattleLevelInfo.Battle_ID;
                            }
                        }
                        else
                        {
                            ConfigDataHeroPhantomLevelInfo configDataHeroPhantomLevelInfo = this.m_configDataLoader.GetConfigDataHeroPhantomLevelInfo(locationId);
                            if (configDataHeroPhantomLevelInfo == null)
                            {
                                return(-2701);
                            }
                            battle_ID = configDataHeroPhantomLevelInfo.Battle_ID;
                        }
                    }
                    else
                    {
                        ConfigDataMemoryCorridorLevelInfo configDataMemoryCorridorLevelInfo = this.m_configDataLoader.GetConfigDataMemoryCorridorLevelInfo(locationId);
                        if (configDataMemoryCorridorLevelInfo == null)
                        {
                            return(-2701);
                        }
                        battle_ID = configDataMemoryCorridorLevelInfo.Battle_ID;
                    }
                }
                else
                {
                    ConfigDataTreasureLevelInfo configDataTreasureLevelInfo = this.m_configDataLoader.GetConfigDataTreasureLevelInfo(locationId);
                    if (configDataTreasureLevelInfo == null)
                    {
                        return(-2701);
                    }
                    battle_ID = configDataTreasureLevelInfo.Battle_ID;
                }
                break;
            }
            ConfigDataBattleInfo configDataBattleInfo = this.m_configDataLoader.GetConfigDataBattleInfo(battle_ID);
            int num = 0;

            foreach (PostDanmakuEntry postDanmakuEntry in entries)
            {
                if (postDanmakuEntry.Turn > configDataBattleInfo.TurnMax)
                {
                    return(-2702);
                }
                if (postDanmakuEntry.Turn <= num)
                {
                    return(-2703);
                }
                num = postDanmakuEntry.Turn;
            }
            return(0);
        }
Ejemplo n.º 26
0
 // Token: 0x06007810 RID: 30736 RVA: 0x0020B62C File Offset: 0x0020982C
 private void __callBase_SetSuccessTreasureMapLevel(ConfigDataTreasureLevelInfo levelInfo, List <int> battleTreasures)
 {
     base.SetSuccessTreasureMapLevel(levelInfo, battleTreasures);
 }
Ejemplo n.º 27
0
 // Token: 0x06014476 RID: 83062 RVA: 0x00528080 File Offset: 0x00526280
 public void TreasureMapUIcontroller_OnStartTreasureLevel(ConfigDataTreasureLevelInfo levelInfo)
 {
     this.m_owner.TreasureMapUIcontroller_OnStartTreasureLevel(levelInfo);
 }
Ejemplo n.º 28
0
 // Token: 0x06014394 RID: 82836 RVA: 0x00525924 File Offset: 0x00523B24
 private void __clearDele_EventOnStartTreasureLevel(ConfigDataTreasureLevelInfo obj)
 {
     this.EventOnStartTreasureLevel = null;
 }
Ejemplo n.º 29
0
 // Token: 0x060143AE RID: 82862 RVA: 0x00525D84 File Offset: 0x00523F84
 public void __clearDele_EventOnStartTreasureLevel(ConfigDataTreasureLevelInfo obj)
 {
     this.m_owner.__clearDele_EventOnStartTreasureLevel(obj);
 }