// Token: 0x06007689 RID: 30345 RVA: 0x0020706C File Offset: 0x0020526C public int FinishBattleRiftLevel(int riftLevelId, List <int> gotAchievementIds, int star, List <int> battleTreasureIds) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_FinishBattleRiftLevelInt32List ` 1Int32List ` 1_hotfix != null) { return(Convert.ToInt32(this.m_FinishBattleRiftLevelInt32List ` 1Int32List ` 1_hotfix.call(new object[] { this, riftLevelId, gotAchievementIds, star, battleTreasureIds }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(riftLevelId); if (configDataRiftLevelInfo == null) { this.m_battle.FightFinished(GameFunctionStatus.Error, false, true); return(-808); } if (star > 0) { this.SetSuccessRiftLevel(configDataRiftLevelInfo, gotAchievementIds, star, battleTreasureIds); } this.m_battle.FightFinished(GameFunctionStatus.End, star > 0, true); return(0); }
// Token: 0x06012CBE RID: 76990 RVA: 0x004CE624 File Offset: 0x004CC824 private void GoRiftLevel() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GoRiftLevel_hotfix != null) { this.m_GoRiftLevel_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(this.m_riftLevelID); if (configDataRiftLevelInfo != null) { int chapterID = configDataRiftLevelInfo.ChapterID; if (this.m_playerContext.CanUnlockRiftLevel(this.m_riftLevelID) == 0) { if (this.EventOnGoToRiftLevel != null) { this.EventOnGoToRiftLevel(chapterID, this.m_riftLevelID); } } else { CommonUIController.Instance.ShowMessage(StringTableId.StringTableId_Rift_Close, 2f, null, true); } } else { global::Debug.LogError("Don't have this RiftLevel!"); } }
// Token: 0x06007688 RID: 30344 RVA: 0x00206FB8 File Offset: 0x002051B8 public int GetRiftLevelStars(int levelId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetRiftLevelStarsInt32_hotfix != null) { return(Convert.ToInt32(this.m_GetRiftLevelStarsInt32_hotfix.call(new object[] { this, levelId }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(levelId); if (configDataRiftLevelInfo == null) { return(0); } RiftLevel riftLevel = this.m_riftDS.FindLevel(configDataRiftLevelInfo.m_chapterId, levelId); if (riftLevel == null) { return(0); } return(riftLevel.Stars); }
// Token: 0x06007686 RID: 30342 RVA: 0x00206E18 File Offset: 0x00205018 public int RaidRiftLevel(int riftlevelId, int nums) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RaidRiftLevelInt32Int32_hotfix != null) { return(Convert.ToInt32(this.m_RaidRiftLevelInt32Int32_hotfix.call(new object[] { this, riftlevelId, nums }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(riftlevelId); if (configDataRiftLevelInfo == null) { return(-808); } for (int i = 0; i < nums; i++) { base.SetRaidSuccessRiftLevel(configDataRiftLevelInfo); } BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward(); battleReward.PlayerExp = configDataRiftLevelInfo.PlayerExpReward * nums; battleReward.HeroExp = 0; battleReward.Gold = configDataRiftLevelInfo.GoldReward * nums; return(0); }
// Token: 0x0600767D RID: 30333 RVA: 0x0020650C File Offset: 0x0020470C private void InitChapterInfos(List <ProRiftChapter> proChapters) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitChapterInfosList ` 1_hotfix != null) { this.m_InitChapterInfosList ` 1_hotfix.call(new object[] { this, proChapters }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; int num = 0; foreach (ProRiftChapter proRiftChapter in proChapters) { num = 0; foreach (ProRiftLevel proRiftLevel in proRiftChapter.ChapterLevels) { ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(proRiftLevel.LevelId); if (configDataRiftLevelInfo != null && configDataRiftLevelInfo.m_chapterId != 0) { num = configDataRiftLevelInfo.m_chapterId; this.m_riftDS.InitLevel(num, proRiftLevel.LevelId, proRiftLevel.Nums, proRiftLevel.Star); } } if (num != 0) { foreach (int index in proRiftChapter.StarRewardIndexes) { this.m_riftDS.AddChapterStarReward(num, index); } } } foreach (RiftChapter riftChapter in this.m_riftDS.Chapters.Values) { int num2 = 0; foreach (RiftLevel riftLevel in riftChapter.ChapterLevels) { ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(riftLevel.LevelId); if (configDataRiftLevelInfo.LevelType != RiftLevelType.RiftLevelType_Event) { num2 += riftLevel.Stars; } } riftChapter.TotalStars = num2; } }
// Token: 0x06012C40 RID: 76864 RVA: 0x004CCEDC File Offset: 0x004CB0DC public void SetRiftLevelInfo(ConfigDataRiftLevelInfo riftLevelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRiftLevelInfoConfigDataRiftLevelInfo_hotfix != null) { this.m_SetRiftLevelInfoConfigDataRiftLevelInfo_hotfix.call(new object[] { this, riftLevelInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (riftLevelInfo == null) { return; } this.m_riftLevelInfo = riftLevelInfo; }
public static int GetRiftLevelInfo(IntPtr l) { int result; try { EventRiftLevelButton eventRiftLevelButton = (EventRiftLevelButton)LuaObject.checkSelf(l); ConfigDataRiftLevelInfo riftLevelInfo = eventRiftLevelButton.GetRiftLevelInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, riftLevelInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06007685 RID: 30341 RVA: 0x00206D60 File Offset: 0x00204F60 public int GetRiftLevelCanChallengeNums(ConfigDataRiftLevelInfo levelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetRiftLevelCanChallengeNumsConfigDataRiftLevelInfo_hotfix != null) { return(Convert.ToInt32(this.m_GetRiftLevelCanChallengeNumsConfigDataRiftLevelInfo_hotfix.call(new object[] { this, levelInfo }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; RiftLevel riftLevel = this.m_riftDS.FindLevel(levelInfo.m_chapterId, levelInfo.ID); if (riftLevel == null) { return(base.GetRiftLevelCanChallengeMaxNums(levelInfo)); } return(base.GetRiftLevelCanChallengeMaxNums(levelInfo) - this.m_riftDS.GetLevelChallengeNums(riftLevel)); }
// Token: 0x06007687 RID: 30343 RVA: 0x00206F0C File Offset: 0x0020510C public bool IsRiftLevelChallenged(int levelId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsRiftLevelChallengedInt32_hotfix != null) { return(Convert.ToBoolean(this.m_IsRiftLevelChallengedInt32_hotfix.call(new object[] { this, levelId }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(levelId); if (configDataRiftLevelInfo == null) { return(false); } RiftLevel riftLevel = this.m_riftDS.FindLevel(configDataRiftLevelInfo.m_chapterId, levelId); return(riftLevel != null); }
// Token: 0x06007680 RID: 30336 RVA: 0x002068C4 File Offset: 0x00204AC4 public override void SetSuccessRiftLevel(ConfigDataRiftLevelInfo riftLevelInfo, List <int> newAchievementIds, int stars, List <int> battleTreasures) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessRiftLevelConfigDataRiftLevelInfoList ` 1Int32List ` 1_hotfix != null) { this.m_SetSuccessRiftLevelConfigDataRiftLevelInfoList ` 1Int32List ` 1_hotfix.call(new object[] { this, riftLevelInfo, newAchievementIds, stars, battleTreasures }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; base.SetSuccessRiftLevel(riftLevelInfo, newAchievementIds, stars, battleTreasures); BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward(); battleReward.PlayerExp = riftLevelInfo.PlayerExpReward; battleReward.HeroExp = this.m_hero.GetAdditiveHeroAddExp(riftLevelInfo.HeroExpReward); battleReward.Gold = riftLevelInfo.GoldReward; }
// Token: 0x06012BF3 RID: 76787 RVA: 0x004CC14C File Offset: 0x004CA34C public void SetRiftLevelInfo(ConfigDataRiftLevelInfo riftLevelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRiftLevelInfoConfigDataRiftLevelInfo_hotfix != null) { this.m_SetRiftLevelInfoConfigDataRiftLevelInfo_hotfix.call(new object[] { this, riftLevelInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (riftLevelInfo == null) { return; } this.m_riftLevelInfo = riftLevelInfo; this.m_nameNumText.text = riftLevelInfo.NameNum; Image image = this.m_image; Sprite sprite = AssetUtility.Instance.GetSprite(riftLevelInfo.Icon); this.m_image1.sprite = sprite; image.sprite = sprite; }
// Token: 0x0600CE55 RID: 52821 RVA: 0x0038C0BC File Offset: 0x0038A2BC public void SetGetPath(GetPathData getPathInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetGetPathGetPathData_hotfix != null) { this.m_SetGetPathGetPathData_hotfix.call(new object[] { this, getPathInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; this.GetPathInfo = getPathInfo; ConfigDataStringTableForListInfo configDataStringTableForListInfo = configDataLoader.GetConfigDataStringTableForListInfo(getPathInfo.Name); this.m_nameText.text = configDataStringTableForListInfo.Content; int num = 0; int num2 = 0; bool flag = false; bool flag2 = true; switch (getPathInfo.PathType) { case GetPathType.GetPathType_Rift: { flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Rift); RiftLevelStatus riftLevelStatus = projectLPlayerContext.GetRiftLevelStatus(getPathInfo.ID); flag2 = (flag2 && riftLevelStatus == RiftLevelStatus.Open); ConfigDataRiftLevelInfo configDataRiftLevelInfo = configDataLoader.GetConfigDataRiftLevelInfo(getPathInfo.ID); num = projectLPlayerContext.GetRiftLevelCanChallengeNums(configDataRiftLevelInfo); num2 = projectLPlayerContext.GetRiftLevelCanChallengeMaxNums(configDataRiftLevelInfo); flag = true; break; } case GetPathType.GetPathType_Aniki: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_AnikiGym); break; case GetPathType.GetPathType_ThearchyTrial: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_ThearchyTrial); break; case GetPathType.GetPathType_Summon1: case GetPathType.GetPathType_Summon2: case GetPathType.GetPathType_Summon3: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_SelectCard); break; case GetPathType.GetPathType_MemoryCorridor: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_MemoryCorridor); break; case GetPathType.GetPathType_HeroTraining: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_HeroTrainning); break; case GetPathType.GetPathType_Drill1: case GetPathType.GetPathType_Drill2: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_TrainingGround); break; case GetPathType.GetPathType_Fetter: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Fetters); break; case GetPathType.GetPathType_Arena: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_ArenaBattle); break; case GetPathType.GetPathType_Friend: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Friend); break; case GetPathType.GetPathType_TreasureMap: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_TreasureMap); break; case GetPathType.GetPathType_Mission: flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Mission); break; case GetPathType.GetPathType_HeroDungeon: { ConfigDataHeroDungeonLevelInfo configDataHeroDungeonLevelInfo = configDataLoader.GetConfigDataHeroDungeonLevelInfo(getPathInfo.ID); flag2 = (configDataHeroDungeonLevelInfo != null && projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_HeroDungeon) && (projectLPlayerContext.CanAttackHeroDungeonLevel(getPathInfo.ID) == 0 || projectLPlayerContext.CanAttackHeroDungeonLevel(getPathInfo.ID) == -2905)); num = projectLPlayerContext.GetHeroDungeonLevelCanChallengeNum(configDataHeroDungeonLevelInfo); num2 = projectLPlayerContext.GetHeroDungeonLevelCanChallengeMaxNum(configDataHeroDungeonLevelInfo); flag = true; break; } } if (flag2) { if (flag) { this.m_stateCtrl.SetToUIState("Number", false, true); this.m_timesValue.text = num.ToString(); this.m_timesAllValue.text = num2.ToString(); if (num != 0) { this.m_timesStateCtrl.SetToUIState("Normal", false, true); } else { this.m_timesStateCtrl.SetToUIState("None", false, true); } } else { this.m_stateCtrl.SetToUIState("Normal", false, true); } } else { this.m_stateCtrl.SetToUIState("Lock", false, true); } }
// 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); } } }
// Token: 0x060076C1 RID: 30401 RVA: 0x00207A80 File Offset: 0x00205C80 public int __callBase_CanRaidLevel(ConfigDataRiftLevelInfo levelInfo) { return(this.m_owner.__callBase_CanRaidLevel(levelInfo)); }
// Token: 0x060076B6 RID: 30390 RVA: 0x002079CC File Offset: 0x00205BCC public void __callBase_AddChallengeNums(ConfigDataRiftLevelInfo levelInfo, int num) { this.m_owner.__callBase_AddChallengeNums(levelInfo, num); }
// Token: 0x060076A3 RID: 30371 RVA: 0x002075BC File Offset: 0x002057BC private void __callBase_SetSuccessRiftLevel(ConfigDataRiftLevelInfo riftLevelInfo, List <int> newAchievementIds, int stars, List <int> battleTreasures) { base.SetSuccessRiftLevel(riftLevelInfo, newAchievementIds, stars, battleTreasures); }
// Token: 0x060076A4 RID: 30372 RVA: 0x002075CC File Offset: 0x002057CC private void __callBase_SetRaidSuccessRiftLevel(ConfigDataRiftLevelInfo levelInfo) { base.SetRaidSuccessRiftLevel(levelInfo); }
// Token: 0x060076A0 RID: 30368 RVA: 0x00207598 File Offset: 0x00205798 private int __callBase_CanRaidLevel(ConfigDataRiftLevelInfo levelInfo) { return(base.CanRaidLevel(levelInfo)); }
// Token: 0x060076A2 RID: 30370 RVA: 0x002075B0 File Offset: 0x002057B0 private void __callBase_AddRiftLevelBasicRewards(ConfigDataRiftLevelInfo riftLevelInfo, bool isRaid) { base.AddRiftLevelBasicRewards(riftLevelInfo, isRaid); }
// Token: 0x0600769F RID: 30367 RVA: 0x0020758C File Offset: 0x0020578C private int __callBase_GetRiftLevelCanChallengeMaxNums(ConfigDataRiftLevelInfo levelInfo) { return(base.GetRiftLevelCanChallengeMaxNums(levelInfo)); }
// Token: 0x060076C0 RID: 30400 RVA: 0x00207A70 File Offset: 0x00205C70 public int __callBase_GetRiftLevelCanChallengeMaxNums(ConfigDataRiftLevelInfo levelInfo) { return(this.m_owner.__callBase_GetRiftLevelCanChallengeMaxNums(levelInfo)); }
// Token: 0x060076C3 RID: 30403 RVA: 0x00207AA0 File Offset: 0x00205CA0 public void __callBase_AddRiftLevelBasicRewards(ConfigDataRiftLevelInfo riftLevelInfo, bool isRaid) { this.m_owner.__callBase_AddRiftLevelBasicRewards(riftLevelInfo, isRaid); }
// Token: 0x060076C4 RID: 30404 RVA: 0x00207AB0 File Offset: 0x00205CB0 public void __callBase_SetSuccessRiftLevel(ConfigDataRiftLevelInfo riftLevelInfo, List <int> newAchievementIds, int stars, List <int> battleTreasures) { this.m_owner.__callBase_SetSuccessRiftLevel(riftLevelInfo, newAchievementIds, stars, battleTreasures); }
// Token: 0x060076C5 RID: 30405 RVA: 0x00207AC4 File Offset: 0x00205CC4 public void __callBase_SetRaidSuccessRiftLevel(ConfigDataRiftLevelInfo levelInfo) { this.m_owner.__callBase_SetRaidSuccessRiftLevel(levelInfo); }
// Token: 0x06007695 RID: 30357 RVA: 0x00207518 File Offset: 0x00205718 private void __callBase_AddChallengeNums(ConfigDataRiftLevelInfo levelInfo, int num) { base.AddChallengeNums(levelInfo, num); }
// 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); }