コード例 #1
0
        protected override void Initialize()
        {
            base.Initialize();

            this.GetComponent <FuelSupplyComponent>().Initialize(2, fuelTagList);
            this.GetComponent <FuelConsumptionComponent>().Initialize(45);
            this.GetComponent <AirPollutionComponent>().Initialize(0.5f);
            this.GetComponent <VehicleComponent>().Initialize(20, 1);
            this.GetComponent <VehicleToolComponent>().Initialize(5, 2800000, new DirtItem(),
                                                                  100, 200, 0, VehicleUtilities.GetInventoryRestriction(this), toolOnMount: true);
        }
コード例 #2
0
        protected override void Initialize()
        {
            base.Initialize();

            this.GetComponent <FuelSupplyComponent>().Initialize(2, fuelTagList);
            this.GetComponent <FuelConsumptionComponent>().Initialize(70);
            this.GetComponent <AirPollutionComponent>().Initialize(0.7f);
            this.GetComponent <VehicleComponent>().Initialize(24, 1);
            this.GetComponent <VehicleToolComponent>().Initialize(7, 3500000, new DirtItem(),
                                                                  100, 200, 0, VehicleUtilities.GetInventoryRestriction(this));
        }
コード例 #3
0
ファイル: SteamTractor.cs プロジェクト: mattbalmer/eco-server
        protected override void Initialize()
        {
            base.Initialize();

            this.GetComponent <PublicStorageComponent>().Initialize(12, 2500000, VehicleUtilities.GetInventoryRestriction(this));
            this.GetComponent <FuelSupplyComponent>().Initialize(2, FuelTagList);
            this.GetComponent <FuelConsumptionComponent>().Initialize(25);
            this.GetComponent <AirPollutionComponent>().Initialize(0.05f);
            this.GetComponent <VehicleComponent>().Initialize(15, 1, 2, this.controlHints);
            this.GetComponent <ModularVehicleComponent>().Initialize(0, 1, SegmentTypeList, AttachmentTypeList);
        }