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

Class containing information on a specific science result, data stored in the persistent file under the R&D node. More...

Public Member Functions

 ScienceSubject (ConfigNode node)
 Return a Science Subject from Research and Development node in the persistent file. More...
 
 ScienceSubject (ScienceExperiment exp, ExperimentSituations sit, CelestialBody body, string biome="")
 Generate new Science Subject. More...
 
 ScienceSubject (string id, string title, float dataScale, float subjectValue, float scienceCap)
 
 ScienceSubject (ScienceExperiment exp, ExperimentSituations sit, string sourceUid, string sourceTitle, CelestialBody body, string biome="")
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Public Attributes

float dataScale
 Multiply science value by this dataScale value to determine data amount in mits. More...
 
string id
 Subject ID in Experimentname format More...
 
float science
 Amount of science already earned from this subject, not updated until after transmission/recovery. More...
 
float scienceCap
 Total science allowable for this subject, based on subjectValue. More...
 
float scientificValue
 Diminishing value multiplier for decreasing the science value returned from repeated experiments. More...
 
float subjectValue
 Multiplier for specific Celestial Body/Experiment Situation combination. More...
 
string title
 Title of science subject, displayed in science archives. More...
 

Detailed Description

Class containing information on a specific science result, data stored in the persistent file under the R&D node.

Constructor & Destructor Documentation

ScienceSubject.ScienceSubject ( ConfigNode  node)

Return a Science Subject from Research and Development node in the persistent file.

Parameters
node
ScienceSubject.ScienceSubject ( ScienceExperiment  exp,
ExperimentSituations  sit,
CelestialBody  body,
string  biome = "" 
)

Generate new Science Subject.

Parameters
expScience Experiment from ScienceDefs file and ModuleScienceExperiment
sitCurrent experimantal situation, based on VesselSituation
bodyCurrent Celestial Body
biomeCurrent biome if applicable, empty string if not
ScienceSubject.ScienceSubject ( string  id,
string  title,
float  dataScale,
float  subjectValue,
float  scienceCap 
)
ScienceSubject.ScienceSubject ( ScienceExperiment  exp,
ExperimentSituations  sit,
string  sourceUid,
string  sourceTitle,
CelestialBody  body,
string  biome = "" 
)

Member Function Documentation

void ScienceSubject.Load ( ConfigNode  node)
void ScienceSubject.Save ( ConfigNode  node)

Member Data Documentation

float ScienceSubject.dataScale

Multiply science value by this dataScale value to determine data amount in mits.

string ScienceSubject.id

Subject ID in Experimentname format

float ScienceSubject.science

Amount of science already earned from this subject, not updated until after transmission/recovery.

float ScienceSubject.scienceCap

Total science allowable for this subject, based on subjectValue.

float ScienceSubject.scientificValue

Diminishing value multiplier for decreasing the science value returned from repeated experiments.

float ScienceSubject.subjectValue

Multiplier for specific Celestial Body/Experiment Situation combination.

string ScienceSubject.title

Title of science subject, displayed in science archives.


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