Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
ScienceExperiment Class Reference

Public Member Functions

bool BiomeIsRelevantWhile (ExperimentSituations situation)
 
bool IsAvailableWhile (ExperimentSituations situation, CelestialBody body)
 
bool IsUnlocked ()
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 
 ScienceExperiment ()
 

Public Attributes

bool applyScienceScale
 Set to False to NOT apply the usual Science scaling against the experiment data every time it is deployed. More...
 
float baseValue
 The base data value that is generated when the experiment is deployed. More...
 
uint biomeMask
 This is the Biome mask to indicate if the Biome the experiment is deployed in is important or not. It will be compared to the Vessel's Situation to determine whether to add the Biome information to the experiment data. So you set the bits based on which of the above situation bits you want Biomes to be relevant for the experiment. More...
 
float dataScale
 This is a percentage scale that is applied to the experiment baseValue when generating science experiment data. More...
 
string experimentTitle
 The Title of the experiment (should be a localization tag). More...
 
string id
 The Experiment id. More...
 
bool requireAtmosphere
 Set to true if the Experiment can only be run in an Atmosphere. More...
 
float requiredExperimentLevel
 Set this to the RnD building level required for the experiment to work. (this is a normalized value). More...
 
bool requireNoAtmosphere
 Set to true if the Experiment can only be run when there is no Atmosphere. More...
 
float scienceCap
 The science cap - max science points value the experiment can generate. More...
 
uint situationMask
 The situation mask that the experiment can run in. These are the bitmask values: SrfLanded = 1, //#autoLOC_6002000 = Surface Landed SrfSplashed = 2, //#autoLOC_6002001 = Surface Splashed FlyingLow = 4, //#autoLOC_6002002 = Flying Low FlyingHigh = 8, //#autoLOC_6002003 = Flying High InSpaceLow = 16, //#autoLOC_6002004 = In Space Low InSpaceHigh = 32 //#autoLOC_6002005 = In Space High More...
 

Properties

Dictionary< string, string > Results [get]
 

Constructor & Destructor Documentation

ScienceExperiment.ScienceExperiment ( )
inline

Member Function Documentation

bool ScienceExperiment.BiomeIsRelevantWhile ( ExperimentSituations  situation)
inline
bool ScienceExperiment.IsAvailableWhile ( ExperimentSituations  situation,
CelestialBody  body 
)
inline
bool ScienceExperiment.IsUnlocked ( )
inline
void ScienceExperiment.Load ( ConfigNode  node)
inline
void ScienceExperiment.Save ( ConfigNode  node)
inline

Member Data Documentation

bool ScienceExperiment.applyScienceScale

Set to False to NOT apply the usual Science scaling against the experiment data every time it is deployed.

float ScienceExperiment.baseValue

The base data value that is generated when the experiment is deployed.

uint ScienceExperiment.biomeMask

This is the Biome mask to indicate if the Biome the experiment is deployed in is important or not. It will be compared to the Vessel's Situation to determine whether to add the Biome information to the experiment data. So you set the bits based on which of the above situation bits you want Biomes to be relevant for the experiment.

float ScienceExperiment.dataScale

This is a percentage scale that is applied to the experiment baseValue when generating science experiment data.

string ScienceExperiment.experimentTitle

The Title of the experiment (should be a localization tag).

string ScienceExperiment.id

The Experiment id.

bool ScienceExperiment.requireAtmosphere

Set to true if the Experiment can only be run in an Atmosphere.

float ScienceExperiment.requiredExperimentLevel

Set this to the RnD building level required for the experiment to work. (this is a normalized value).

bool ScienceExperiment.requireNoAtmosphere

Set to true if the Experiment can only be run when there is no Atmosphere.

float ScienceExperiment.scienceCap

The science cap - max science points value the experiment can generate.

uint ScienceExperiment.situationMask

The situation mask that the experiment can run in. These are the bitmask values: SrfLanded = 1, //#autoLOC_6002000 = Surface Landed SrfSplashed = 2, //#autoLOC_6002001 = Surface Splashed FlyingLow = 4, //#autoLOC_6002002 = Flying Low FlyingHigh = 8, //#autoLOC_6002003 = Flying High InSpaceLow = 16, //#autoLOC_6002004 = In Space Low InSpaceHigh = 32 //#autoLOC_6002005 = In Space High

Property Documentation

Dictionary<string, string> ScienceExperiment.Results
get

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