Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
 }
Example #4
0
        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);
            }
        }
Example #5
0
 public Engine(TruckSimulatorDataModel root) : base(root)
 {
 }
Example #6
0
 public Damage(TruckSimulatorDataModel root) : base(root)
 {
 }
Example #7
0
 public Lights(TruckSimulatorDataModel root) : base(root)
 {
 }
Example #8
0
 public BrakeAirPressure(TruckSimulatorDataModel root) : base(root)
 {
 }
Example #9
0
 public Trailer(TruckSimulatorDataModel root, int trailerIndex) : base(root)
 {
     this.trailerIndex = trailerIndex;
     Wheels            = new TrailerWheels(root, trailerIndex);
 }
Example #10
0
 public Job(TruckSimulatorDataModel root) : base(root)
 {
     DeliveryTime = new DateTimeModel(() => Telemetry.deliveryTime.ToGameDateTime());
 }
Example #11
0
 public Game(TruckSimulatorDataModel root) : base(root)
 {
     GameTime = new DateTimeModel(() => Telemetry.gameTime.ToGameDateTime());
 }
Example #12
0
 public TruckWheel(TruckSimulatorDataModel root, int wheelIndex) : base(root)
 {
     this.wheelIndex = wheelIndex;
 }
Example #13
0
 public Controls(TruckSimulatorDataModel root) : base(root)
 {
 }
Example #14
0
 public CruiseControl(TruckSimulatorDataModel root) : base(root)
 {
 }
Example #15
0
 protected ChildDataModel(TruckSimulatorDataModel root) => DataModelRoot = root;
Example #16
0
 public TrailerWheel(TruckSimulatorDataModel root, int trailerIndex, int wheelIndex) : base(root)
 {
     this.trailerIndex = trailerIndex;
     this.wheelIndex   = wheelIndex;
 }
Example #17
0
 public Fuel(TruckSimulatorDataModel root) : base(root)
 {
 }
 public Navigation(TruckSimulatorDataModel root) : base(root)
 {
 }