Example #1
0
    public static int get_ID(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataBattleAchievementRelatedInfo configDataBattleAchievementRelatedInfo = (ConfigDataBattleAchievementRelatedInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, configDataBattleAchievementRelatedInfo.ID);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #2
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataBattleAchievementRelatedInfo o = new ConfigDataBattleAchievementRelatedInfo();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #3
0
    public static int set_m_achievementInfo(IntPtr l)
    {
        int result;

        try
        {
            ConfigDataBattleAchievementRelatedInfo configDataBattleAchievementRelatedInfo = (ConfigDataBattleAchievementRelatedInfo)LuaObject.checkSelf(l);
            ConfigDataBattleAchievementInfo        achievementInfo;
            LuaObject.checkType <ConfigDataBattleAchievementInfo>(l, 2, out achievementInfo);
            configDataBattleAchievementRelatedInfo.m_achievementInfo = achievementInfo;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
        // Token: 0x06012CBB RID: 76987 RVA: 0x004CE22C File Offset: 0x004CC42C
        public void SetCondition(RiftLevelUnlockConditionType condition, int param1, int param2)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetConditionRiftLevelUnlockConditionTypeInt32Int32_hotfix != null)
            {
                this.m_SetConditionRiftLevelUnlockConditionTypeInt32Int32_hotfix.call(new object[]
                {
                    this,
                    condition,
                    param1,
                    param2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            if (condition == RiftLevelUnlockConditionType.RiftLevelUnlockConditionType_Scenario)
            {
                ConfigDataScenarioInfo configDataScenarioInfo = configDataLoader.GetConfigDataScenarioInfo(param1);
                if (configDataScenarioInfo != null)
                {
                    this.m_text.text  = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_UnlockCondition_Scenario), configDataScenarioInfo.Chapter);
                    this.m_scenarioID = param1;
                    this.m_goButton.onClick.AddListener(new UnityAction(this.GoScenario));
                    this.m_goButton.gameObject.SetActive(true);
                }
            }
            else if (condition == RiftLevelUnlockConditionType.RiftLevelUnlockConditionType_Achievement)
            {
                ConfigDataBattleAchievementRelatedInfo configDataBattleAchievementRelatedInfo = configDataLoader.GetConfigDataBattleAchievementRelatedInfo(param1);
                if (configDataBattleAchievementRelatedInfo != null)
                {
                    this.m_achievementRiftLevelID = param2;
                    string nameNum = this.m_configDataLoader.GetConfigDataRiftLevelInfo(this.m_achievementRiftLevelID).NameNum;
                    string name    = this.m_configDataLoader.GetConfigDataBattleAchievementInfo(configDataBattleAchievementRelatedInfo.Achievement_ID).Name;
                    this.m_text.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_UnlockCondition_Achievement), nameNum, name);
                    this.m_goButton.onClick.AddListener(new UnityAction(this.GoAchievement));
                    this.m_goButton.gameObject.SetActive(true);
                }
            }
            else if (condition == RiftLevelUnlockConditionType.RiftLevelUnlockConditionType_Hero)
            {
                ConfigDataHeroInfo configDataHeroInfo = configDataLoader.GetConfigDataHeroInfo(param1);
                if (configDataHeroInfo != null)
                {
                    this.m_text.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_UnlockCondition_Hero), configDataHeroInfo.Name);
                    this.m_goButton.gameObject.SetActive(false);
                }
            }
            else if (condition == RiftLevelUnlockConditionType.RiftLevelUnlockConditionType_RiftLevel)
            {
                ConfigDataRiftLevelInfo configDataRiftLevelInfo = configDataLoader.GetConfigDataRiftLevelInfo(param1);
                if (configDataRiftLevelInfo != null)
                {
                    this.m_text.text   = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_UnlockCondition_RiftLevel), configDataRiftLevelInfo.Name);
                    this.m_riftLevelID = param1;
                    this.m_goButton.onClick.AddListener(new UnityAction(this.GoRiftLevel));
                    this.m_goButton.gameObject.SetActive(true);
                }
            }
        }