Example #1
0
        public void Initialise()
        {
            Name = NameOffset + _calculator.GetF1DriverNameId(Id);

            var stepOffset = LocalOffset * Id;

            Salary                   = BaseOffset + stepOffset + SalaryOffset;
            RaceBonus                = BaseOffset + stepOffset + RaceBonusOffset;
            ChampionshipBonus        = BaseOffset + stepOffset + ChampionshipBonusOffset;
            PayRating                = BaseOffset + stepOffset + PayRatingOffset;
            PositiveSalary           = BaseOffset + stepOffset + PositiveSalaryOffset;
            LastChampionshipPosition = BaseOffset + stepOffset + LastChampionshipPositionOffset;
            Role        = BaseOffset + stepOffset + RoleOffset;
            Age         = BaseOffset + stepOffset + AgeOffset;
            Nationality = BaseOffset + stepOffset + NationalityOffset;

            CareerChampionships  = BaseOffset + stepOffset + CareerChampionshipsOffset;
            CareerRaces          = BaseOffset + stepOffset + CareerRacesOffset;
            CareerWins           = BaseOffset + stepOffset + CareerWinsOffset;
            CareerPoints         = BaseOffset + stepOffset + CareerPointsOffset;
            CareerFastestLaps    = BaseOffset + stepOffset + CareerFastestLapsOffset;
            CareerPointsFinishes = BaseOffset + stepOffset + CareerPointsFinishesOffset;
            CareerPolePositions  = BaseOffset + stepOffset + CareerPolePositionsOffset;

            Speed         = BaseOffset + stepOffset + SpeedOffset;
            Skill         = BaseOffset + stepOffset + SkillOffset;
            Overtaking    = BaseOffset + stepOffset + OvertakingOffset;
            WetWeather    = BaseOffset + stepOffset + WetWeatherOffset;
            Concentration = BaseOffset + stepOffset + ConcentrationOffset;
            Experience    = BaseOffset + stepOffset + ExperienceOffset;
            Stamina       = BaseOffset + stepOffset + StaminaOffset;
            Morale        = BaseOffset + stepOffset + MoraleOffset;
        }