public Navigation(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Navigation.TotalDaysLeft", 0); Base.AddProp("Navigation.TotalHoursLeft", 0); Base.AddProp("Navigation.Minutes", 0); }
public Drivetrain(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Drivetrain.EcoRange", false); Base.AddProp("Drivetrain.FuelRangeStable", 0); Base.AddProp("Drivetrain.GearDashboard", 0); }
public Damage(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Damage.WearWarning", false); Base.AddProp("Damage.WearAverage", 0); Base.AddEvent("DamageIncrease"); }
public JobStatus(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Job.Status", ""); Base.AddProp("Job.InProgress", false); Base.AddAction("JobStatusReset", (a, b) => { JobStatusReset(); }); Base.AddEvent("JobTaken"); Base.AddEvent("JobLoading"); Base.AddEvent("JobOngoing"); Base.AddEvent("JobCompleted"); Base.AddEvent("JobAbandoned"); Base.AddEvent("JobReset"); }
public Dashboard(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Dashboard.DisplayUnitMetric", false); Base.AddAction("SwitchDisplayUnit", (a, b) => { Base.Settings.DashUnitMetric = !Base.Settings.DashUnitMetric; }); }
public Localisation(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; LoadCityLocalisations(); // Localised versions of these strings Base.AddProp("L.Job.CitySource", ""); Base.AddProp("L.Job.CountrySource", ""); Base.AddProp("L.Job.CityDestination", ""); Base.AddProp("L.Job.CountryDestination", ""); // ASCII safe versions of these strings Base.AddProp("L.A.Job.CitySourceFromSDK", ""); Base.AddProp("L.A.Job.CityDestinationFromSDK", ""); // Localised, ASCII safe versions of these strings Base.AddProp("L.A.Job.CitySource", ""); Base.AddProp("L.A.Job.CityDestination", ""); Base.AddProp("L.A.Job.CountrySource", ""); Base.AddProp("L.A.Job.CountryDestination", ""); }
public Drivetrain(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Drivetrain.EcoRange", false); Base.AddProp("Drivetrain.FuelRangeStable", 0); Base.AddProp("Drivetrain.FuelValue.AverageConsumptionLitresPer100Mile", 0); Base.AddProp("Drivetrain.FuelValue.AverageConsumptionMilesPerGallonUK", 0); Base.AddProp("Drivetrain.FuelValue.AverageConsumptionMilesPerGallonUS", 0); Base.AddProp("Drivetrain.GearDashboard", 0); }
public Job(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Job.OverSpeedLimit", false); Base.AddProp("Job.OverSpeedLimitPercentage", 0); Base.AddProp("Job.NextRestWarning", false); Base.AddProp("Job.RemainingDeliveryTime.Time.Days", 0); Base.AddProp("Job.RemainingDeliveryTime.Time.Hours", 0); Base.AddProp("Job.RemainingDeliveryTime.Time.Minutes", 0); }
public Job(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Job.OverSpeedLimit", false); Base.AddProp("Job.OverSpeedLimitPercentage", 0); Base.AddProp("Job.NextRestWarning", false); Base.AddProp("Job.TotalDaysLeft", 0); Base.AddProp("Job.TotalHoursLeft", 0); Base.AddProp("Job.Minutes", 0); }
public Engine(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Engine.Starting", false); }
public Lights(TruckSimulatorPlugin truckSimulatorPlugin) { Base = truckSimulatorPlugin; Base.AddProp("Lights.HazardWarningOn", false); }