// Token: 0x06004D01 RID: 19713 RVA: 0x00179E50 File Offset: 0x00178050 public RiftChapter AddChapter(int chapterId) { RiftChapter riftChapter = new RiftChapter(); this.Chapters.Add(chapterId, riftChapter); return(riftChapter); }
// Token: 0x06004D05 RID: 19717 RVA: 0x00179F08 File Offset: 0x00178108 private void InitLevel(RiftChapter chapter, int levelId, int nums, int stars) { chapter.ChapterLevels.Add(new RiftLevel(levelId, nums, stars)); if (stars > 0) { this.FinishedRiftLevelIds.Add(levelId); } }
// Token: 0x06004D04 RID: 19716 RVA: 0x00179ED4 File Offset: 0x001780D4 public void AddLevel(RiftChapter chapter, int levelId, int nums, int stars) { chapter.ChapterLevels.Add(new RiftLevel(levelId, nums, stars)); if (stars > 0) { this.FinishedRiftLevelIds.Add(levelId); } base.SetDirty(true); }
// Token: 0x06004D0F RID: 19727 RVA: 0x0017A0F8 File Offset: 0x001782F8 public void AddChapterStarReward(int chapterId, int index) { RiftChapter riftChapter; if (!this.Chapters.TryGetValue(chapterId, out riftChapter)) { riftChapter = new RiftChapter(); this.Chapters.Add(chapterId, riftChapter); } riftChapter.StarRewardIndexes.Add(index); }
// 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); }
// Token: 0x06004CFE RID: 19710 RVA: 0x00179D1C File Offset: 0x00177F1C public override object SerializeToClient() { DSRiftNtf dsriftNtf = new DSRiftNtf(); dsriftNtf.Version = (uint)base.Version; foreach (int item in this.AchievementRelationIds) { dsriftNtf.AchievementRelationIds.Add(item); } foreach (KeyValuePair <int, RiftChapter> keyValuePair in this.Chapters) { dsriftNtf.RiftChapters.Add(RiftChapter.RiftChapterToPBRiftChapter(keyValuePair.Value)); } return(dsriftNtf); }
// Token: 0x06004D03 RID: 19715 RVA: 0x00179EA0 File Offset: 0x001780A0 public RiftLevel FindLevel(RiftChapter chapter, int levelId) { return(chapter.ChapterLevels.Find((RiftLevel m) => m.LevelId == levelId)); }