예제 #1
0
        // 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);
        }
예제 #2
0
 // Token: 0x0600767C RID: 30332 RVA: 0x00206444 File Offset: 0x00204644
 public void DeSerialize(DSRiftNtf msg)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DeSerializeDSRiftNtf_hotfix != null)
     {
         this.m_DeSerializeDSRiftNtf_hotfix.call(new object[]
         {
             this,
             msg
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_riftDS.ClearInitedData();
     this.m_riftDS.InitAchievementRelationIds(msg.AchievementRelationIds, this.m_riftDS.LastRiftRankUpdateTime, this.m_riftDS.LastRiftAchievementRank);
     this.InitChapterInfos(msg.RiftChapters);
     this.m_riftDS.InitVersion((ushort)msg.Version, (ushort)msg.Version);
 }