Example #1
0
 // Token: 0x06004FD7 RID: 20439 RVA: 0x0017FA34 File Offset: 0x0017DC34
 public static ProHeroDungeonLevel ToPBLevel(HeroDungeonLevel level)
 {
     return(new ProHeroDungeonLevel
     {
         LevelId = level.LevelId,
         Nums = level.Nums,
         Stars = level.Stars
     });
 }
Example #2
0
        // 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);
        }
Example #3
0
 // Token: 0x06004BAB RID: 19371 RVA: 0x00176E80 File Offset: 0x00175080
 public void AddHeroDungeonLevelChallengeNums(HeroDungeonLevel level, int nums)
 {
     level.Nums += nums;
     base.SetDirty(true);
 }