Ejemplo n.º 1
0
        // Token: 0x06004B9D RID: 19357 RVA: 0x00176B4C File Offset: 0x00174D4C
        public override object SerializeToClient()
        {
            DSHeroDungeonNtf dsheroDungeonNtf = new DSHeroDungeonNtf();

            dsheroDungeonNtf.AchievementRelationIds.AddRange(this.AchievementRelationIds);
            foreach (HeroDungeonChapter chapter in this.Chapters.Values)
            {
                dsheroDungeonNtf.Chapters.Add(HeroDungeonChapter.ToPBChapter(chapter));
            }
            dsheroDungeonNtf.Version            = (uint)base.Version;
            dsheroDungeonNtf.DailyChallengeNums = this.m_dailyChallengeNums;
            return(dsheroDungeonNtf);
        }
Ejemplo n.º 2
0
 // Token: 0x060071F5 RID: 29173 RVA: 0x001F9950 File Offset: 0x001F7B50
 public void DeSerialize(DSHeroDungeonNtf ntf)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DeSerializeDSHeroDungeonNtf_hotfix != null)
     {
         this.m_DeSerializeDSHeroDungeonNtf_hotfix.call(new object[]
         {
             this,
             ntf
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_heroDungeonDS.ClearInitedData();
     this.m_heroDungeonDS.InitVersion((ushort)ntf.Version, (ushort)ntf.Version);
     this.m_heroDungeonDS.InitAchievementRelationIds(ntf.AchievementRelationIds);
     this.m_heroDungeonDS.InitDailyChallengeNums(ntf.DailyChallengeNums);
     this.InitChapters(ntf.Chapters);
 }