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

A class that represents the resource requirements of an engine. More...

Public Member Functions

 Propellant ()
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Public Attributes

double currentAmount
 
double currentRequirement
 
bool drawStackGauge
 
int id
 The integer ID of the resource consumed. More...
 
bool isDeprived
 
string name
 The string name of the resource consumed, e.g. "LiquidFuel" More...
 
float ratio
 How much of this resource is consumed by the engine, in proportion to other resources. For example if the engine consumes three resources (A, B, C) with A.ratio = 3, B.ratio = 2, C.ratio = 1, then 3 units of every will be consumed for every 2 units of B and 1 unit of C. More...
 

Detailed Description

A class that represents the resource requirements of an engine.

Constructor & Destructor Documentation

ModuleEngines.Propellant.Propellant ( )

Member Function Documentation

void ModuleEngines.Propellant.Load ( ConfigNode  node)
void ModuleEngines.Propellant.Save ( ConfigNode  node)

Member Data Documentation

double ModuleEngines.Propellant.currentAmount
double ModuleEngines.Propellant.currentRequirement
bool ModuleEngines.Propellant.drawStackGauge
int ModuleEngines.Propellant.id

The integer ID of the resource consumed.

bool ModuleEngines.Propellant.isDeprived
string ModuleEngines.Propellant.name

The string name of the resource consumed, e.g. "LiquidFuel"

float ModuleEngines.Propellant.ratio

How much of this resource is consumed by the engine, in proportion to other resources. For example if the engine consumes three resources (A, B, C) with A.ratio = 3, B.ratio = 2, C.ratio = 1, then 3 units of every will be consumed for every 2 units of B and 1 unit of C.


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