Esempio n. 1
0
        public UllageSet(ModuleEnginesRF eng)
        {
            log.dbg("Ullage constructor called on " + eng.part.name);
            engine    = eng;
            ullageSim = new UllageSimulator(engine.part.name);
            if (engine.vessel != null)
            {
                module = engine.vessel.GetComponent <UllageModule>();
            }
            else
            {
                module = null;
            }

            tanks   = new List <Part>();
            rfTanks = new Dictionary <Part, Tanks.ModuleFuelTanks>();

            // set engine fields
            pressureFed   = engine.pressureFed;
            ullageEnabled = engine.ullage;

            // create orientaiton
            SetThrustAxis(engine.thrustAxis);
            if (HighLogic.LoadedSceneIsFlight || HighLogic.LoadedSceneIsEditor)
            {
                SetTanks(); // fill tank lists, find pressurization, etc.
            }
        }
Esempio n. 2
0
 public void SetModule(UllageModule newModule)
 {
     module = newModule;
 }