예제 #1
0
        public Summoner(DatabaseReader reader)
        {
            Id = reader.Integer();

            Region = (RegionType)reader.Integer();

            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
        public RunePage(DatabaseReader reader)
        {
            Id = reader.Integer();
            Name = reader.String();
            IsCurrentRunePage = reader.Boolean();
            TimeCreated = reader.Integer();

            Slots = new List<RuneSlot>();

            reader.SanityCheck(Fields);
        }
예제 #3
0
        public Summoner(DatabaseReader reader)
        {
            Id = reader.Integer();

            Region = (RegionType)reader.Integer();

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

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

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

            HasBeenUpdated = reader.Boolean();

            UpdateAutomatically = reader.Boolean();

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

            reader.SanityCheck(Fields);
        }
예제 #4
0
파일: Game.cs 프로젝트: kumouri/RiotControl
        public Game(DatabaseReader reader)
        {
            Id = reader.Integer();

            GameId = reader.Integer();

            Map = reader.Map();
            GameMode = reader.GameMode();

            GameTime = reader.Time();

            BlueTeamWon = reader.Boolean();

            BlueTeamId = reader.Integer();
            PurpleTeamId = reader.Integer();

            reader.SanityCheck(Fields);
        }
예제 #5
0
        protected override void PerformExtendedReading(DatabaseReader reader)
        {
            InternalGameId = reader.Integer();

            Map = reader.Map();
            GameMode = reader.GameMode();

            GameTime = reader.Integer();

            int blueTeamId = reader.Integer();
            int purpleTeamId = reader.Integer();

            BlueTeamWon = reader.Boolean();

            IsBlueTeam = blueTeamId == TeamId;

            Won = IsBlueTeam == BlueTeamWon;

            reader.SanityCheck(GetExtendedFields());
        }