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

Public Member Functions

Vector3 GetShipSize ()
 
void LoadShip (string filename, ConfigNode root)
 
void LoadShip (ConfigNode root)
 

Static Public Member Functions

static string GetPartId (ConfigNode partNode)
 
static string GetPartName (ConfigNode partNode)
 

Public Attributes

ConfigNode config = null
 
float dryCost = 0f
 
bool duplicatedParts = false
 Duplicated parts will cause the ship to crash and burn on the launchpad. More...
 
string filename = ""
 
float fuelCost = 0f
 
bool isControllable = false
 
int partCount = 0
 
ConfigNode rootPartNode = null
 
string shipDescription = ""
 
string shipName = ""
 
bool shipPartsExperimental = false
 Some parts on the ship are experimental parts. More...
 
bool shipPartsUnlocked = true
 Some parts on the ship are unusable at the moment. More...
 
Vector3 shipSize
 
int shipType = 0
 
int stageCount = 0
 
float totalCost = 0f
 
float totalMass = 0f
 

Member Function Documentation

static string ShipTemplate.GetPartId ( ConfigNode  partNode)
inlinestatic
static string ShipTemplate.GetPartName ( ConfigNode  partNode)
inlinestatic
Vector3 ShipTemplate.GetShipSize ( )
inline
void ShipTemplate.LoadShip ( string  filename,
ConfigNode  root 
)
inline
void ShipTemplate.LoadShip ( ConfigNode  root)
inline

< Remove from the candidate list any part which is linked to by another

Member Data Documentation

ConfigNode ShipTemplate.config = null
float ShipTemplate.dryCost = 0f
bool ShipTemplate.duplicatedParts = false

Duplicated parts will cause the ship to crash and burn on the launchpad.

string ShipTemplate.filename = ""
float ShipTemplate.fuelCost = 0f
bool ShipTemplate.isControllable = false
int ShipTemplate.partCount = 0
ConfigNode ShipTemplate.rootPartNode = null
string ShipTemplate.shipDescription = ""
string ShipTemplate.shipName = ""
bool ShipTemplate.shipPartsExperimental = false

Some parts on the ship are experimental parts.

bool ShipTemplate.shipPartsUnlocked = true

Some parts on the ship are unusable at the moment.

Vector3 ShipTemplate.shipSize
int ShipTemplate.shipType = 0
int ShipTemplate.stageCount = 0
float ShipTemplate.totalCost = 0f
float ShipTemplate.totalMass = 0f

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