コード例 #1
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);
 }
コード例 #2
0
ファイル: Car.cs プロジェクト: jrc60752/iRacingSDK.Net
 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);
 }
コード例 #3
0
ファイル: Car.cs プロジェクト: JasonHardman/iRacingSDK.Net
 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);
 }
コード例 #4
0
        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
                    }
                }
            };
        }
コード例 #5
0
        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
                    }
                }
            };
        }