// Token: 0x06004CD0 RID: 19664 RVA: 0x001794FC File Offset: 0x001776FC public override object SerializeToClient() { DSRealTimePVPNtf dsrealTimePVPNtf = new DSRealTimePVPNtf { Version = (uint)base.Version, RealTimePVP = new ProRealTimePVP { IsPromotion = this.IsPromotion } }; foreach (RealTimePVPBattleReport report in this.PromotionReports) { dsrealTimePVPNtf.RealTimePVP.PromotionReports.Add(report.ToPro()); } foreach (RealTimePVPBattleReport report2 in this.Reports) { dsrealTimePVPNtf.RealTimePVP.Reports.Add(report2.ToPro()); } dsrealTimePVPNtf.RealTimePVP.FriendlyMatchStats = this.FriendlyMatchStats.ToPro(); dsrealTimePVPNtf.RealTimePVP.FriendlyCareerMatchStats = this.FriendlyCareerMatchStats.ToPro(); dsrealTimePVPNtf.RealTimePVP.LadderMatchStats = this.LadderMatchStats.ToPro(); dsrealTimePVPNtf.RealTimePVP.LadderCareerMatchStats = this.LadderCareerMatchStats.ToPro(); dsrealTimePVPNtf.RealTimePVP.WinsBonusIdAcquired.AddRange(this.WinsBonusIdAcquired); return(dsrealTimePVPNtf); }
// Token: 0x060075DF RID: 30175 RVA: 0x00204728 File Offset: 0x00202928 public void DeSerialize(DSRealTimePVPNtf msg) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DeSerializeDSRealTimePVPNtf_hotfix != null) { this.m_DeSerializeDSRealTimePVPNtf_hotfix.call(new object[] { this, msg }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_realTimePVP.ClearInitedData(); this.m_realTimePVP.InitVersion((ushort)msg.Version, (ushort)msg.Version); this.m_realTimePVP.IsPromotion = msg.RealTimePVP.IsPromotion; foreach (ProRealTimePVPBattleReport report in msg.RealTimePVP.PromotionReports) { this.m_realTimePVP.PromotionReports.AddLast(report.ToMemory()); } foreach (ProRealTimePVPBattleReport report2 in msg.RealTimePVP.Reports) { this.m_realTimePVP.Reports.AddLast(report2.ToMemory()); } this.m_realTimePVP.FriendlyCareerMatchStats = msg.RealTimePVP.FriendlyCareerMatchStats.ToMemory(); this.m_realTimePVP.FriendlyMatchStats = msg.RealTimePVP.FriendlyMatchStats.ToMemory(); this.m_realTimePVP.LadderCareerMatchStats = msg.RealTimePVP.LadderCareerMatchStats.ToMemory(); this.m_realTimePVP.LadderMatchStats = msg.RealTimePVP.LadderMatchStats.ToMemory(); this.m_realTimePVP.WinsBonusIdAcquired.AddRange(msg.RealTimePVP.WinsBonusIdAcquired); }