コード例 #1
0
        public override void OnStart(PartModule.StartState state)
        {
            getThrottleDelegate = getThrottle;
            debug = new info.FSdebugMessages(debugMode, "FSengine");

            this.PopulateModelTransforms();

            velocityCurve          = Firespitter.Tools.stringToFloatCurve(velocityLimit);
            atmosphericThrustCurve = Firespitter.Tools.stringToFloatCurve(atmosphericThrust);
            fuelConsumptionCurve   = Firespitter.Tools.stringToFloatCurve(fuelConsumption);
            throttleThrustCurve    = Firespitter.Tools.stringToFloatCurve(throttleThrust);
            fillResourceList(resources);
        }
コード例 #2
0
        public override void OnStart(PartModule.StartState state)
        {
            getThrottleDelegate = getThrottle;
            debug = new SMIndustries.info.SMIdebugMessages(debugMode, "SMIengine");
            //part.stackIcon.SetIcon(DefaultIcons.LIQUID_ENGINE);
            part.stagingIcon = "LIQUID_ENGINE";
            thrustTransforms = part.FindModelTransforms(thrustTransformName);

            velocityCurve          = SMIndustries.SMTools.stringToFloatCurve(velocityLimit);
            atmosphericThrustCurve = SMIndustries.SMTools.stringToFloatCurve(atmosphericThrust);
            fuelConsumptionCurve   = SMIndustries.SMTools.stringToFloatCurve(fuelConsumption);
            throttleThrustCurve    = SMIndustries.SMTools.stringToFloatCurve(throttleThrust);
            fillResourceList(resources);
        }
コード例 #3
0
ファイル: FSengine.cs プロジェクト: KevinMilcz/Firespitter
        public override void OnStart(PartModule.StartState state)
        {
            getThrottleDelegate = getThrottle;
            debug = new info.FSdebugMessages(debugMode, "FSengine");
            //part.stackIcon.SetIcon(DefaultIcons.LIQUID_ENGINE);
            part.stagingIcon = "LIQUID_ENGINE";
            thrustTransforms = part.FindModelTransforms(thrustTransformName);

            velocityCurve = Firespitter.Tools.stringToFloatCurve(velocityLimit);
            atmosphericThrustCurve = Firespitter.Tools.stringToFloatCurve(atmosphericThrust);
            fuelConsumptionCurve = Firespitter.Tools.stringToFloatCurve(fuelConsumption);
            throttleThrustCurve = Firespitter.Tools.stringToFloatCurve(throttleThrust);
            fillResourceList(resources);
        }