KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ScienceData Class Reference

Class containing information on science reports, stored in the persistent file in modules using IScienceDataContainer. More...

Public Member Functions

 ScienceData (ConfigNode node)
 
 ScienceData (float amount, float xmitValue, float labBoost, string id, string dataName)
 Generate Science Data based on Science Subject values. More...
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Static Public Member Functions

static ScienceData CopyOf (ScienceData src)
 

Public Attributes

float dataAmount
 Amount of data, in mits, to be transmitted or recovered. Affects transmission time and energy usage. More...
 
float labBoost
 Level of science lab boost, less than 1 is un-boosted, 1.5 is the standard lab boosted value, higher levels don't appear to be used. More...
 
string subjectID
 ID of science data in Experimentname format, matches Science Subject id. More...
 
string title
 Science data title, displayed on experimental results dialog page and recovery summary. More...
 
float transmitValue
 Percentage of science value that can be transmitted. 1 is equal to the amount gained by returning to Kerbin. More...
 

Detailed Description

Class containing information on science reports, stored in the persistent file in modules using IScienceDataContainer.

Constructor & Destructor Documentation

ScienceData.ScienceData ( ConfigNode  node)
ScienceData.ScienceData ( float  amount,
float  xmitValue,
float  labBoost,
string  id,
string  dataName 
)

Generate Science Data based on Science Subject values.

Parameters
amountAmount of data, it mits.
xmitValueTransmission value
labBoostCurrent state of science lab boost
idMatches Science Subject ID
dataNameTitle of science data

Member Function Documentation

static ScienceData ScienceData.CopyOf ( ScienceData  src)
static
void ScienceData.Load ( ConfigNode  node)
void ScienceData.Save ( ConfigNode  node)

Member Data Documentation

float ScienceData.dataAmount

Amount of data, in mits, to be transmitted or recovered. Affects transmission time and energy usage.

float ScienceData.labBoost

Level of science lab boost, less than 1 is un-boosted, 1.5 is the standard lab boosted value, higher levels don't appear to be used.

string ScienceData.subjectID

ID of science data in Experimentname format, matches Science Subject id.

string ScienceData.title

Science data title, displayed on experimental results dialog page and recovery summary.

float ScienceData.transmitValue

Percentage of science value that can be transmitted. 1 is equal to the amount gained by returning to Kerbin.


The documentation for this class was generated from the following file: