Exemplo n.º 1
0
        public void RunStandardModuleScienceExperiment(ModuleScienceExperiment exp)
        {
            if (exp.Inoperable)
            {
                return;
            }

            if (_parent.Config.ShowResultsWindow)
            {
                exp.DeployExperiment( );
            }
            else
            {
                if (!exp.useStaging)
                {
                    exp.useStaging = true;
                    exp.OnActive();
                    exp.useStaging = false;
                }
                else
                {
                    exp.OnActive();
                }
            }
        }
Exemplo n.º 2
0
        public void RunStandardModuleScienceExperiment(ModuleScienceExperiment exp)
        {
            if (exp.Inoperable)
            {
                return;
            }

            if (Config.HideExperimentResultsDialog)
            {
                if (!exp.useStaging)
                {
                    exp.useStaging = true;
                    exp.OnActive();
                    exp.useStaging = false;
                }
                else
                {
                    exp.OnActive();
                }
            }
            else
            {
                exp.DeployExperiment();
            }
        }
        public static void RunScience(ModuleScienceExperiment experimentModule)
        {
            bool wasStaged = experimentModule.useStaging;

            experimentModule.useStaging = true;
            experimentModule.OnActive();
            experimentModule.useStaging = wasStaged;
        }
Exemplo n.º 4
0
        /* run experiment without popping up the report */
        private void DeployExperiment(ModuleScienceExperiment currentExperiment)
        {
            var temp = currentExperiment.useStaging;

            currentExperiment.useStaging = true;
            currentExperiment.OnActive();
            currentExperiment.useStaging = temp;
        }
Exemplo n.º 5
0
 public void DeployExperiment(ModuleScienceExperiment baseExperiment)
 {
     if (_AutomatedScienceSamplerInstance.craftSettings.hideScienceDialog)
     {
         var stagingSetting = baseExperiment.useStaging;
         baseExperiment.useStaging = true;           //work the way around the staging
         baseExperiment.OnActive();                  //run the experiment without causing the report to show up
         baseExperiment.useStaging = stagingSetting; //set the staging back
     }
     else
     {
         baseExperiment.DeployExperiment();
     }
 }
 private static void createScience(ModuleScienceExperiment currentExperiment)
 {
     //Need something like this for DMagic experiments!
       var stagingSetting = currentExperiment.useStaging;
       currentExperiment.useStaging = true;//work the way around the staging
       currentExperiment.OnActive();//run the experiment without causing the report to show up
       currentExperiment.useStaging = stagingSetting;//set the staging back
 }