public Car(Telemetry telemetry, int carIdx)
 {
     this.telemetry = telemetry;
     this.carIdx    = carIdx;
     this.driver    = telemetry.SessionData.DriverInfo.CompetingDrivers[carIdx];
     this.Details   = new CarDetails(telemetry, carIdx);
 }
Exemple #2
0
 public Car(Telemetry telemetry, int carIdx)
 {
     this.telemetry = telemetry;
     this.carIdx = carIdx;
     this.driver = telemetry.SessionData.DriverInfo.CompetingDrivers[carIdx];
     this.Details = new CarDetails(telemetry, carIdx);
 }
Exemple #3
0
 public Car(Telemetry telemetry, int carIdx)
 {
     this.telemetry = telemetry;
     this.carIdx    = carIdx;
     this.driver    = telemetry.SessionData.DriverInfo.Drivers.FirstOrDefault(d => d.CarIdx == carIdx);
     this.Details   = new CarDetails(telemetry, carIdx);
 }
        public void setup()
        {
            telemetry = new Telemetry();

            driver = new SessionData._DriverInfo._Drivers();

            telemetry.SessionData = new SessionData
            {
                DriverInfo = new SessionData._DriverInfo
                {
                    Drivers = new SessionData._DriverInfo._Drivers[]
                    {
                        driver
                    }
                }
            };
        }
        public void setup()
        {
            telemetry = new Telemetry();

            driver = new SessionData._DriverInfo._Drivers { CarNumberRaw = 1 };

            telemetry.SessionData = new SessionData
            {
                DriverInfo = new SessionData._DriverInfo
                {
                    Drivers = new SessionData._DriverInfo._Drivers[] 
                    {
                        driver
                    }
                }
            };
        }