コード例 #1
0
        public Navigation(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Navigation.TotalDaysLeft", 0);
            Base.AddProp("Navigation.TotalHoursLeft", 0);
            Base.AddProp("Navigation.Minutes", 0);
        }
コード例 #2
0
        public Drivetrain(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Drivetrain.EcoRange", false);
            Base.AddProp("Drivetrain.FuelRangeStable", 0);
            Base.AddProp("Drivetrain.GearDashboard", 0);
        }
コード例 #3
0
        public Damage(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Damage.WearWarning", false);
            Base.AddProp("Damage.WearAverage", 0);

            Base.AddEvent("DamageIncrease");
        }
コード例 #4
0
        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");
        }
コード例 #5
0
        public Dashboard(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Dashboard.DisplayUnitMetric", false);

            Base.AddAction("SwitchDisplayUnit", (a, b) =>
            {
                Base.Settings.DashUnitMetric = !Base.Settings.DashUnitMetric;
            });
        }
コード例 #6
0
        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", "");
        }
コード例 #7
0
        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);
        }
コード例 #8
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);
        }
コード例 #9
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);
        }
コード例 #10
0
        public Engine(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Engine.Starting", false);
        }
コード例 #11
0
        public Lights(TruckSimulatorPlugin truckSimulatorPlugin)
        {
            Base = truckSimulatorPlugin;

            Base.AddProp("Lights.HazardWarningOn", false);
        }