public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo o = new ConfigDataChallengeLevelInfo();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_UnchartedScoreInfo(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, configDataChallengeLevelInfo.UnchartedScoreInfo);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_ItemDropCountDisplay(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, configDataChallengeLevelInfo.ItemDropCountDisplay);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_m_dialogInfoAfter(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            ConfigDataDialogInfo         dialogInfoAfter;
            LuaObject.checkType <ConfigDataDialogInfo>(l, 2, out dialogInfoAfter);
            configDataChallengeLevelInfo.m_dialogInfoAfter = dialogInfoAfter;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_BattleInfo(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            ConfigDataBattleInfo         battleInfo;
            LuaObject.checkType <ConfigDataBattleInfo>(l, 2, out battleInfo);
            configDataChallengeLevelInfo.BattleInfo = battleInfo;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_ScoreBase(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            int scoreBase;
            LuaObject.checkType(l, 2, out scoreBase);
            configDataChallengeLevelInfo.ScoreBase = scoreBase;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_PlayerExp(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            int playerExp;
            LuaObject.checkType(l, 2, out playerExp);
            configDataChallengeLevelInfo.PlayerExp = playerExp;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_DialogAfter_ID(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            int dialogAfter_ID;
            LuaObject.checkType(l, 2, out dialogAfter_ID);
            configDataChallengeLevelInfo.DialogAfter_ID = dialogAfter_ID;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_EnergyFail(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            int energyFail;
            LuaObject.checkType(l, 2, out energyFail);
            configDataChallengeLevelInfo.EnergyFail = energyFail;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_UnlockDaysDelay(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataChallengeLevelInfo configDataChallengeLevelInfo = (ConfigDataChallengeLevelInfo)LuaObject.checkSelf(l);
            int unlockDaysDelay;
            LuaObject.checkType(l, 2, out unlockDaysDelay);
            configDataChallengeLevelInfo.UnlockDaysDelay = unlockDaysDelay;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
        // Token: 0x0601486D RID: 84077 RVA: 0x005360B4 File Offset: 0x005342B4
        public void SetUnchartedChallengeLevelInfo(ConfigDataChallengeLevelInfo levelInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetUnchartedChallengeLevelInfoConfigDataChallengeLevelInfo_hotfix != null)
            {
                this.m_SetUnchartedChallengeLevelInfoConfigDataChallengeLevelInfo_hotfix.call(new object[]
                {
                    this,
                    levelInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix     = false;
            this.m_unchartedScoreLevelInfo     = null;
            this.m_unchartedChallengeLevelInfo = levelInfo;
            this.m_uiStateController.SetToUIState("Challenge", false, true);
            GameObjectUtility.DestroyChildren(this.m_rewardGroupTransform.gameObject);
            List <Goods> rewardList = new List <Goods>(levelInfo.CommonRewardList);

            this.SetLevelInfo(levelInfo.Name, levelInfo.MonsterLevel, levelInfo.EnergySuccess, rewardList, levelInfo.ItemDropCountDisplay, true);
            this.m_levelNameText.text = levelInfo.Name;
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            this.m_lockedText.text = configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_UnchartedScore_NeedCompletePrevLevel);
        }
Esempio n. 12
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);
        }