示例#1
0
        // Token: 0x06004CD4 RID: 19668 RVA: 0x001796A8 File Offset: 0x001778A8
        public void SaveReport(RealTimePVPBattleReport Report)
        {
            this.Reports.AddFirst(Report);
            RealTimePVPMatchStats       realTimePVPMatchStats  = null;
            RealTimePVPMatchStats       realTimePVPMatchStats2 = null;
            RealTimePVPBattleReportType reportType             = Report.ReportType;

            if (reportType != RealTimePVPBattleReportType.Default && reportType != RealTimePVPBattleReportType.Promotion)
            {
                if (reportType == RealTimePVPBattleReportType.Friendly)
                {
                    realTimePVPMatchStats  = this.FriendlyMatchStats;
                    realTimePVPMatchStats2 = this.FriendlyCareerMatchStats;
                }
            }
            else
            {
                realTimePVPMatchStats  = this.LadderMatchStats;
                realTimePVPMatchStats2 = this.LadderCareerMatchStats;
            }
            if (Report.Win)
            {
                realTimePVPMatchStats.AddWins();
                realTimePVPMatchStats2.AddWins();
            }
            else
            {
                realTimePVPMatchStats.AddLosses();
                realTimePVPMatchStats2.AddLosses();
            }
            base.SetDirty(true);
        }