コード例 #1
0
        // Token: 0x060010BA RID: 4282 RVA: 0x000166C8 File Offset: 0x000148C8
        public static PlayerMatchStats Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            PlayerMatchStats playerMatchStats = new PlayerMatchStats();

            playerMatchStats.Cmid             = Int32Proxy.Deserialize(bytes);
            playerMatchStats.Death            = Int32Proxy.Deserialize(bytes);
            playerMatchStats.HasFinishedMatch = BooleanProxy.Deserialize(bytes);
            playerMatchStats.HasWonMatch      = BooleanProxy.Deserialize(bytes);
            playerMatchStats.Headshots        = Int32Proxy.Deserialize(bytes);
            playerMatchStats.Hits             = Int64Proxy.Deserialize(bytes);
            playerMatchStats.Kills            = Int32Proxy.Deserialize(bytes);
            playerMatchStats.Nutshots         = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                playerMatchStats.PersonalRecord = PlayerPersonalRecordStatisticsViewProxy.Deserialize(bytes);
            }
            playerMatchStats.Shots           = Int64Proxy.Deserialize(bytes);
            playerMatchStats.Smackdowns      = Int32Proxy.Deserialize(bytes);
            playerMatchStats.TimeSpentInGame = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                playerMatchStats.WeaponStatistics = PlayerWeaponStatisticsViewProxy.Deserialize(bytes);
            }
            return(playerMatchStats);
        }
コード例 #2
0
        // Token: 0x060010EA RID: 4330 RVA: 0x00018CDC File Offset: 0x00016EDC
        public static PlayerStatisticsView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            PlayerStatisticsView playerStatisticsView = new PlayerStatisticsView();

            playerStatisticsView.Cmid      = Int32Proxy.Deserialize(bytes);
            playerStatisticsView.Headshots = Int32Proxy.Deserialize(bytes);
            playerStatisticsView.Hits      = Int64Proxy.Deserialize(bytes);
            playerStatisticsView.Level     = Int32Proxy.Deserialize(bytes);
            playerStatisticsView.Nutshots  = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                playerStatisticsView.PersonalRecord = PlayerPersonalRecordStatisticsViewProxy.Deserialize(bytes);
            }
            playerStatisticsView.Shots           = Int64Proxy.Deserialize(bytes);
            playerStatisticsView.Splats          = Int32Proxy.Deserialize(bytes);
            playerStatisticsView.Splatted        = Int32Proxy.Deserialize(bytes);
            playerStatisticsView.TimeSpentInGame = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                playerStatisticsView.WeaponStatistics = PlayerWeaponStatisticsViewProxy.Deserialize(bytes);
            }
            playerStatisticsView.Xp = Int32Proxy.Deserialize(bytes);
            return(playerStatisticsView);
        }