// Token: 0x06004FCF RID: 20431 RVA: 0x0017F964 File Offset: 0x0017DB64 public static ProHeroDungeonChapter ToPBChapter(HeroDungeonChapter chapter) { ProHeroDungeonChapter proHeroDungeonChapter = new ProHeroDungeonChapter(); proHeroDungeonChapter.ChapterId = chapter.ChapterId; proHeroDungeonChapter.StarRewardIndexes.AddRange(chapter.StarRewardIndexes); foreach (HeroDungeonLevel level in chapter.ChapterLevels) { proHeroDungeonChapter.ChapterLevels.Add(HeroDungeonLevel.ToPBLevel(level)); } return(proHeroDungeonChapter); }
public static int ToPBChapter_s(IntPtr l) { int result; try { HeroDungeonChapter chapter; LuaObject.checkType <HeroDungeonChapter>(l, 1, out chapter); ProHeroDungeonChapter o = HeroDungeonChapter.ToPBChapter(chapter); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x060071F7 RID: 29175 RVA: 0x001F9AD0 File Offset: 0x001F7CD0 private void InitChapter(ProHeroDungeonChapter pbChapter) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitChapterProHeroDungeonChapter_hotfix != null) { this.m_InitChapterProHeroDungeonChapter_hotfix.call(new object[] { this, pbChapter }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; foreach (ProHeroDungeonLevel proHeroDungeonLevel in pbChapter.ChapterLevels) { ConfigDataHeroDungeonLevelInfo configDataHeroDungeonLevelInfo = this.m_configDataLoader.GetConfigDataHeroDungeonLevelInfo(proHeroDungeonLevel.LevelId); if (configDataHeroDungeonLevelInfo != null && configDataHeroDungeonLevelInfo.m_chapterId != 0) { base.InitLevel(configDataHeroDungeonLevelInfo.m_chapterId, proHeroDungeonLevel.LevelId, proHeroDungeonLevel.Stars, proHeroDungeonLevel.Nums); } } this.m_heroDungeonDS.InitChapteStarRewardIndexes(pbChapter.ChapterId, pbChapter.StarRewardIndexes); }
// Token: 0x06007237 RID: 29239 RVA: 0x001FA548 File Offset: 0x001F8748 public void InitChapter(ProHeroDungeonChapter pbChapter) { this.m_owner.InitChapter(pbChapter); }