Esempio n. 1
0
        public void DumpData(ScienceData data)
        {
            // get drive
            Drive drive = DB.Vessel(vessel).drive;

            // if not the preferred drive
            if (drive.location != part.flightID)
            {
                return;
            }

            // remove the data
            if (data.baseTransmitValue > float.Epsilon || data.transmitBonus > double.Epsilon)
            {
                drive.Delete_File(data.subjectID, data.dataAmount);
            }
            else
            {
                drive.Delete_Sample(data.subjectID, data.dataAmount);
            }
        }