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