예제 #1
0
        public override void OnStart(StartState state)
        {
            if (state == StartState.Editor)
            {
                return;
            }

            String[] resources_to_supply = { ResourceManager.FNRESOURCE_MEGAJOULES };
            this.resources_to_supply = resources_to_supply;
            base.OnStart(state);

            part.force_activate();

            inputResourceNames = ParseTools.ParseNames(inputResources);
            inputResourceRate  = ParseTools.ParseDoubles(inputConversionRates);
            outputResourceRate = ParseTools.ParseDoubles(outputConversionRates);
        }
예제 #2
0
        public override void OnStart(StartState state)
        {
            if (state == StartState.Editor)
            {
                return;
            }

            string[] resources_to_supply = { ResourceSettings.Config.ElectricPowerInMegawatt };
            this.resources_to_supply = resources_to_supply;
            base.OnStart(state);

            if (forceActivateAtStartup)
            {
                part.force_activate();
            }

            inputResourceNames = ParseTools.ParseNames(inputResources);
            inputResourceRate  = ParseTools.ParseDoubles(inputConversionRates);
        }