Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ScienceData Class Reference
Inheritance diagram for ScienceData:
IConfigNode

Public Member Functions

void Load (ConfigNode node)
 
void Save (ConfigNode node)
 
 ScienceData (ConfigNode node)
 
 ScienceData (float amount, float xmitValue, float xmitBonus, string id, string dataName, bool triggered=false, uint container=0)
 
 ScienceData (float amount, float scienceValueRatio, float xmitValue, float xmitBonus, string id, string dataName, bool triggered=false, uint container=0, string extraResultString="")
 

Static Public Member Functions

static ScienceData CopyOf (ScienceData src)
 

Public Attributes

float baseTransmitValue
 This is the transmission value. More...
 
uint container
 
float dataAmount
 This is the amount of science data (not science points) More...
 
string extraResultString
 
float labValue
 This is the Value of the Data if sent to a Science Lab More...
 
float scienceValueRatio
 Different parts can generate different amounts of science. We control how much using the science value ratio. It should be a value between 0 and 1 representing a percentage of the overall scienceCap. More...
 
string subjectID
 The Subject ID this data is for. More...
 
string title
 The Title of the experiment this data is for. (this is a localization tag). More...
 
float transmitBonus
 The Transmission Bonus. This is a percentage multiplier. More...
 
bool triggered
 

Constructor & Destructor Documentation

ScienceData.ScienceData ( ConfigNode  node)
inline
ScienceData.ScienceData ( float  amount,
float  xmitValue,
float  xmitBonus,
string  id,
string  dataName,
bool  triggered = false,
uint  container = 0 
)
inline
ScienceData.ScienceData ( float  amount,
float  scienceValueRatio,
float  xmitValue,
float  xmitBonus,
string  id,
string  dataName,
bool  triggered = false,
uint  container = 0,
string  extraResultString = "" 
)
inline

Member Function Documentation

static ScienceData ScienceData.CopyOf ( ScienceData  src)
inlinestatic
void ScienceData.Load ( ConfigNode  node)
inline

Implements IConfigNode.

void ScienceData.Save ( ConfigNode  node)
inline

Implements IConfigNode.

Member Data Documentation

float ScienceData.baseTransmitValue

This is the transmission value.

uint ScienceData.container
float ScienceData.dataAmount

This is the amount of science data (not science points)

string ScienceData.extraResultString
float ScienceData.labValue

This is the Value of the Data if sent to a Science Lab

float ScienceData.scienceValueRatio

Different parts can generate different amounts of science. We control how much using the science value ratio. It should be a value between 0 and 1 representing a percentage of the overall scienceCap.

string ScienceData.subjectID

The Subject ID this data is for.

string ScienceData.title

The Title of the experiment this data is for. (this is a localization tag).

float ScienceData.transmitBonus

The Transmission Bonus. This is a percentage multiplier.

bool ScienceData.triggered

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