Esempio n. 1
0
        public TeamPlayer(DatabaseReader reader)
        {
            GameId = reader.Integer();
            TeamId = reader.Integer();
            SummonerId = reader.Integer();

            Ping = reader.Integer();
            TimeSpentInQueue = reader.Integer();

            PremadeSize = reader.Integer();

            KCoefficient = reader.Integer();
            ProbabilityOfWinning = reader.Double();

            Rating = reader.MaybeInteger();
            RatingChange = reader.MaybeInteger();
            AdjustedRating = reader.MaybeInteger();
            TeamRating = reader.MaybeInteger();

            ExperienceEarned = reader.Integer();
            BoostedExperienceEarned = reader.Integer();

            IPEarned = reader.Integer();
            BoostedIPEarned = reader.Integer();

            SummonerLevel = reader.Integer();

            SummonerSpell1 = reader.Integer();
            SummonerSpell2 = reader.Integer();

            ChampionId = reader.Integer();

            //May be null
            SkinName = reader.String();
            SkinIndex = reader.Integer();

            ChampionLevel = reader.Integer();

            //Not sure about this
            Items = (int[])reader.Get();

            Kills = reader.Integer();
            Deaths = reader.Integer();
            Assists = reader.Integer();

            MinionKills = reader.Integer();

            Gold = reader.Integer();

            DamageDealt = reader.Integer();
            PhysicalDamageDealt = reader.Integer();
            MagicalDamageDealt = reader.Integer();

            DamageTaken = reader.Integer();
            PhysicalDamageTaken = reader.Integer();
            MagicalDamageTaken = reader.Integer();

            TotalHealingDone = reader.Integer();

            TimeSpentDead = reader.Integer();

            LargestMultiKill = reader.Integer();
            LargestKillingSpree = reader.Integer();
            LargestCritcalStrike = reader.Integer();

            //Summoner's Rift/Twisted Treeline

            NeutralMinionsKilled = reader.MaybeInteger();

            TurretsDestroyed = reader.MaybeInteger();
            InhibitorsDestroyed = reader.MaybeInteger();

            //Dominion

            NodesNeutralised = reader.MaybeInteger();
            NodeNeutralisationAssists = reader.MaybeInteger();
            NodesCaptured = reader.MaybeInteger();

            VictoryPoints = reader.MaybeInteger();
            Objectives = reader.MaybeInteger();

            TotalScore = reader.MaybeInteger();
            ObjectiveScore = reader.MaybeInteger();
            CombatScore = reader.MaybeInteger();

            Rank = reader.MaybeInteger();

            PerformExtendedReading(reader);
        }