Ejemplo n.º 1
0
 public void DumpData(ScienceData scienceData)
 {
     //Debug.Log("Dump Data");
     if (scienceData == this.scienceData)
     {
         this.scienceData = null;
         merdp            = null;
         resultString     = null;
         transmitValue    = 0;
         recoveryValue    = 0;
         Deployed         = false;
     }
 }
Ejemplo n.º 2
0
        protected void sendDataToComms(ScienceData scienceData)
        {
            //Debug.Log("Sending data to comms");
            List <IScienceDataTransmitter> list = base.vessel.FindPartModulesImplementing <IScienceDataTransmitter>();

            if (list.Any <IScienceDataTransmitter>() && scienceData != null && dataGend)
            {
                merdp = null;
                List <ScienceData> list2 = new List <ScienceData>();
                list2.Add(scienceData);
                list.OrderBy(new Func <IScienceDataTransmitter, float>(ScienceUtil.GetTransmitterScore)).First <IScienceDataTransmitter>().TransmitData(list2);
                endExperiment(scienceData);
            }
        }
Ejemplo n.º 3
0
 public void ReviewData()
 {
     //Debug.Log("Review Data");
     if (scienceData != null)
     {
         if (merdp == null || !dataGend)
         {
             ExperimentsResultDialog.DisplayResult(merdp = new ModableExperimentResultDialogPage(base.part, this.scienceData, this.scienceData.transmitValue, 0, false, "", true, false, new Callback <ScienceData>(this.endExperiment), new Callback <ScienceData>(this.keepData), new Callback <ScienceData>(this.sendDataToComms), new Callback <ScienceData>(this.sendDataToLab)));
             merdp.setUpScienceData(resultTitle, resultString, transmitValue, recoveryValue, dataSize, xmitScalar, refValue);
         }
         else
         {
             ExperimentsResultDialog.DisplayResult(merdp);
         }
     }
     else
     {
         ResetExperiment();
     }
 }