示例#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);
        }
 // Token: 0x06005110 RID: 20752 RVA: 0x00182914 File Offset: 0x00180B14
 public static ProRealTimePVPMatchStats ToPro(this RealTimePVPMatchStats Stats)
 {
     return(new ProRealTimePVPMatchStats
     {
         ConsecutiveLosses = Stats.ConsecutiveLosses,
         ConsecutiveWins = Stats.ConsecutiveWins,
         Matches = Stats.Matches,
         Wins = Stats.Wins
     });
 }