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
Propellant Class Reference

Public Member Functions

ResourceFlowMode GetFlowMode ()
 Returns the final flow mode of this propellant (if null, defauts to the resource default) More...
 
string GetFlowModeDescription ()
 
PartResourceDefinition getPartResourceDefinition ()
 Returns the PartResourceDefinition for the Resource. Or Null if not found. More...
 
void Load (ConfigNode node)
 
 Propellant ()
 
void Save (ConfigNode node)
 
void UpdateConnectedResources (Part p)
 

Public Attributes

double actualTotalAvailable
 
double currentAmount
 How much did we get. More...
 
double currentRequirement
 How much fuel do we need. More...
 
string displayName
 The name of the resource localized in language text More...
 
bool drawStackGauge
 
bool hasAlternatePropellant = false
 
int id
 Used for hashing and quick lookup. More...
 
bool ignoreForIsp = false
 do we ignore this propellant's mass when calculating Isp? More...
 
bool ignoreForThrustCurve = false
 do we ignore this propellant when changing flow based on a thrust curve? More...
 
bool isDeprived = false
 
double minResToLeave = 0d
 
string name
 the name of the resource we'll be using More...
 
float ratio
 How much of the mixture does this specific resource make up. More...
 
double totalResourceCapacity
 

Properties

PartResourceDefinition resourceDef [get]
 The PartResourceDefinition for this Propellant. Returns Null if not found. More...
 
double totalResourceAvailable [get, set]
 

Constructor & Destructor Documentation

Propellant.Propellant ( )
inline

Member Function Documentation

ResourceFlowMode Propellant.GetFlowMode ( )
inline

Returns the final flow mode of this propellant (if null, defauts to the resource default)

string Propellant.GetFlowModeDescription ( )
inline
PartResourceDefinition Propellant.getPartResourceDefinition ( )
inline

Returns the PartResourceDefinition for the Resource. Or Null if not found.

Returns
void Propellant.Load ( ConfigNode  node)
inline
void Propellant.Save ( ConfigNode  node)
inline
void Propellant.UpdateConnectedResources ( Part  p)
inline

Member Data Documentation

double Propellant.actualTotalAvailable
double Propellant.currentAmount

How much did we get.

double Propellant.currentRequirement

How much fuel do we need.

string Propellant.displayName

The name of the resource localized in language text

bool Propellant.drawStackGauge
bool Propellant.hasAlternatePropellant = false
int Propellant.id

Used for hashing and quick lookup.

bool Propellant.ignoreForIsp = false

do we ignore this propellant's mass when calculating Isp?

bool Propellant.ignoreForThrustCurve = false

do we ignore this propellant when changing flow based on a thrust curve?

bool Propellant.isDeprived = false
double Propellant.minResToLeave = 0d
string Propellant.name

the name of the resource we'll be using

float Propellant.ratio

How much of the mixture does this specific resource make up.

double Propellant.totalResourceCapacity

Property Documentation

PartResourceDefinition Propellant.resourceDef
get

The PartResourceDefinition for this Propellant. Returns Null if not found.

double Propellant.totalResourceAvailable
getset

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