Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
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());
        }
Ejemplo n.º 4
0
        override protected 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());
        }