public TruckWheels(TruckSimulatorDataModel root) : base(root) { // Create as many accessors as there are truck wheels the SDK supports wheelAccessors = new TruckWheel[TruckSimulatorMemoryStruct.WheelCount]; for (var i = 0; i < TruckSimulatorMemoryStruct.WheelCount; i++) { wheelAccessors[i] = new TruckWheel(root, i); } }
public Trailers(TruckSimulatorDataModel root) : base(root) { // Create an accessor for up-to as many trailers as the SDK supports trailerAccessors = new Trailer[TruckSimulatorMemoryStruct.TrailerCount]; for (var i = 0; i < TruckSimulatorMemoryStruct.TrailerCount; i++) { trailerAccessors[i] = new Trailer(root, i); } }
public Truck(TruckSimulatorDataModel root) : base(root) { Engine = new Engine(root); Fuel = new Fuel(root); AirPressure = new BrakeAirPressure(root); Lights = new Lights(root); Wheels = new TruckWheels(root); Damage = new Damage(root); }
public TrailerWheels(TruckSimulatorDataModel root, int trailerIndex) : base(root) { this.trailerIndex = trailerIndex; // Create accessors for each of the potential wheels on this trailer wheelAccessors = new TrailerWheel[TruckSimulatorMemoryStruct.WheelCount]; for (var i = 0; i < TruckSimulatorMemoryStruct.WheelCount; i++) { wheelAccessors[i] = new TrailerWheel(root, trailerIndex, i); } }
public Engine(TruckSimulatorDataModel root) : base(root) { }
public Damage(TruckSimulatorDataModel root) : base(root) { }
public Lights(TruckSimulatorDataModel root) : base(root) { }
public BrakeAirPressure(TruckSimulatorDataModel root) : base(root) { }
public Trailer(TruckSimulatorDataModel root, int trailerIndex) : base(root) { this.trailerIndex = trailerIndex; Wheels = new TrailerWheels(root, trailerIndex); }
public Job(TruckSimulatorDataModel root) : base(root) { DeliveryTime = new DateTimeModel(() => Telemetry.deliveryTime.ToGameDateTime()); }
public Game(TruckSimulatorDataModel root) : base(root) { GameTime = new DateTimeModel(() => Telemetry.gameTime.ToGameDateTime()); }
public TruckWheel(TruckSimulatorDataModel root, int wheelIndex) : base(root) { this.wheelIndex = wheelIndex; }
public Controls(TruckSimulatorDataModel root) : base(root) { }
public CruiseControl(TruckSimulatorDataModel root) : base(root) { }
protected ChildDataModel(TruckSimulatorDataModel root) => DataModelRoot = root;
public TrailerWheel(TruckSimulatorDataModel root, int trailerIndex, int wheelIndex) : base(root) { this.trailerIndex = trailerIndex; this.wheelIndex = wheelIndex; }
public Fuel(TruckSimulatorDataModel root) : base(root) { }
public Navigation(TruckSimulatorDataModel root) : base(root) { }