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

Public Member Functions

 ShipConstruct ()
 
 ShipConstruct (int shipType)
 
 ShipConstruct (string shipName, int shipType, List< Part > parts)
 
 ShipConstruct (string shipName, string shipDescription, Part rootPart)
 
void Add (Part p)
 
bool AreAllPartsConnected ()
 
void Clear ()
 
bool Contains (Part p)
 
IEnumerator< PartGetEnumerator ()
 
float GetShipCosts (out float dryCost, out float fuelCost)
 
bool isControllable ()
 
bool LoadShip (ConfigNode root)
 
void Remove (Part p)
 
ConfigNode SaveShip ()
 

Public Attributes

List< Partparts
 A list of all the parts in the ShipConstruct. The parts are listed in the same order in which they were added to the ship in the editor. More...
 
string shipDescription
 
string shipName
 
bool shipPartsUnlocked
 
int shipType
 

Static Public Attributes

static int lastCompatibleMajor
 
static int lastCompatibleMinor
 
static int lastCompatibleRev
 

Properties

int Count [get]
 
List< PartParts [get]
 
Part this[int index] [get, set]
 

Constructor & Destructor Documentation

ShipConstruct.ShipConstruct ( )
ShipConstruct.ShipConstruct ( int  shipType)
ShipConstruct.ShipConstruct ( string  shipName,
int  shipType,
List< Part parts 
)
ShipConstruct.ShipConstruct ( string  shipName,
string  shipDescription,
Part  rootPart 
)

Member Function Documentation

void ShipConstruct.Add ( Part  p)
bool ShipConstruct.AreAllPartsConnected ( )
void ShipConstruct.Clear ( )
bool ShipConstruct.Contains ( Part  p)
IEnumerator<Part> ShipConstruct.GetEnumerator ( )
float ShipConstruct.GetShipCosts ( out float  dryCost,
out float  fuelCost 
)
bool ShipConstruct.isControllable ( )
bool ShipConstruct.LoadShip ( ConfigNode  root)
void ShipConstruct.Remove ( Part  p)
ConfigNode ShipConstruct.SaveShip ( )

Member Data Documentation

int ShipConstruct.lastCompatibleMajor
static
int ShipConstruct.lastCompatibleMinor
static
int ShipConstruct.lastCompatibleRev
static
List<Part> ShipConstruct.parts

A list of all the parts in the ShipConstruct. The parts are listed in the same order in which they were added to the ship in the editor.

string ShipConstruct.shipDescription
string ShipConstruct.shipName
bool ShipConstruct.shipPartsUnlocked
int ShipConstruct.shipType

Property Documentation

int ShipConstruct.Count
get
List<Part> ShipConstruct.Parts
get
Part ShipConstruct.this[int index]
getset

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