// Token: 0x06005115 RID: 20757 RVA: 0x00182A4C File Offset: 0x00180C4C public static ProRiftChapter RiftChapterToPBRiftChapter(RiftChapter riftChapter) { ProRiftChapter proRiftChapter = new ProRiftChapter(); foreach (RiftLevel riftLevel in riftChapter.ChapterLevels) { proRiftChapter.ChapterLevels.Add(RiftLevel.RiftLevelToPBRiftLevel(riftLevel)); } foreach (int item in riftChapter.StarRewardIndexes) { proRiftChapter.StarRewardIndexes.Add(item); } return(proRiftChapter); }
// Token: 0x06005114 RID: 20756 RVA: 0x0018298C File Offset: 0x00180B8C public static RiftChapter PBRiftChapterToRiftCHapter(ProRiftChapter pbRiftChapter) { RiftChapter riftChapter = new RiftChapter(); foreach (ProRiftLevel pbRiftLevel in pbRiftChapter.ChapterLevels) { riftChapter.ChapterLevels.Add(RiftLevel.PBRiftLevelToRiftLevel(pbRiftLevel)); } foreach (int item in pbRiftChapter.StarRewardIndexes) { riftChapter.StarRewardIndexes.Add(item); } return(riftChapter); }
public static int RiftChapterToPBRiftChapter_s(IntPtr l) { int result; try { RiftChapter riftChapter; LuaObject.checkType <RiftChapter>(l, 1, out riftChapter); ProRiftChapter o = RiftChapter.RiftChapterToPBRiftChapter(riftChapter); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }