コード例 #1
0
ファイル: Summoner.cs プロジェクト: nolanlum/MyRiotControl
        public Summoner(DbDataReader dataReader)
        {
            Reader reader = new Reader(dataReader);

            Id = reader.Integer();

            Region = reader.String().ToRegionType();

            AccountId = reader.Integer();
            SummonerId = reader.Integer();

            SummonerName = reader.String();
            InternalName = reader.String();

            SummonerLevel = reader.Integer();
            ProfileIcon = reader.Integer();

            UpdateAutomatically = reader.Boolean();

            TimeCreated = reader.Time();
            TimeUpdated = reader.Time();

            reader.SanityCheck(Fields);

            Ratings = new List<SummonerRating>();
            RatingDictionary = new Dictionary<MapType, Dictionary<GameModeType, SummonerRating>>();
            RankedStatistics = new List<SummonerRankedStatistics>();
        }
コード例 #2
0
ファイル: GameTeamPlayer.cs プロジェクト: andor44/RiotControl
        protected override void PerformExtendedReading(Reader reader)
        {
            InternalGameId = reader.Integer();

            Map = reader.String().ToMapType();
            GameMode = reader.String().ToGameModeType();

            GameTime = reader.Time();

            reader.SanityCheck(GetExtendedFields());
        }
コード例 #3
0
        public SummonerRating(DbDataReader dataReader)
        {
            Reader reader = new Reader(dataReader);

            Map = reader.String().ToMapType();
            GameMode = reader.String().ToGameModeType();

            Wins = reader.Integer();
            Losses = reader.Integer();
            Leaves = reader.Integer();

            CurrentRating = reader.MaybeInteger();
            TopRating = reader.MaybeInteger();

            reader.SanityCheck(Fields);
        }
コード例 #4
0
        public AggregatedChampionStatistics(DbDataReader dataReader)
        {
            Reader reader = new Reader(dataReader);

            ChampionId = reader.Integer();

            Wins = reader.Integer();
            Losses = reader.Integer();

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

            Gold = reader.Integer();

            MinionKills = reader.Integer();

            reader.SanityCheck(Fields);
        }
コード例 #5
0
ファイル: Game.cs プロジェクト: nolanlum/MyRiotControl
        public Game(NpgsqlDataReader dataReader)
        {
            Reader reader = new Reader(dataReader);

            Id = reader.Integer();

            GameId = reader.Integer();

            Map = reader.String().ToMapType();
            GameMode = reader.String().ToGameModeType();

            GameTime = reader.Time();

            Team1Won = reader.Boolean();

            Team1Id = reader.Integer();
            Team2Id = reader.Integer();

            reader.SanityCheck(Fields);
        }
コード例 #6
0
        public SummonerRankedStatistics(DbDataReader dataReader)
        {
            Reader reader = new Reader(dataReader);

            ChampionId = reader.Integer();

            Wins = reader.Integer();
            Losses = reader.Integer();

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

            MinionKills = reader.Integer();

            Gold = reader.Integer();

            TurretsDestroyed = reader.Integer();

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

            DamageTaken = reader.Integer();

            DoubleKills = reader.Integer();
            TripleKills = reader.Integer();
            QuadraKills = reader.Integer();
            PentaKills = reader.Integer();

            TimeSpentDead = reader.Integer();

            MaximumKills = reader.Integer();
            MaximumDeaths = reader.Integer();

            reader.SanityCheck(Fields);
        }
コード例 #7
0
ファイル: TeamPlayer.cs プロジェクト: nolanlum/MyRiotControl
 protected virtual void PerformExtendedReading(Reader reader)
 {
     reader.SanityCheck(Fields);
 }