Difference between revisions of "API:ShipConstruction"
From Kerbal Space Program Wiki
(Created page.) |
Rocketdocker (talk | contribs) ({{Orphan}}) |
||
Line 1: | Line 1: | ||
+ | {{Orphan}} | ||
{{class | {{class | ||
|name=ShipConstruction | |name=ShipConstruction |
Latest revision as of 17:33, 22 January 2020
ShipConstruction Class
The ShipConstruction class is used to construct ships.
Properties
The following are public properties available in ShipConstruction.
Signature | Description |
---|---|
List Backups { get; } | ? |
ConfigNode ShipConfig { get; } | |
int ShipType { get; set; } |
Methods
The following are methods included in ShipConstruction.
Signature | Description |
---|---|
void AssembleForLaunch(ShipConstruct ship, string landedAt, FlightState sceneState) | Put the ship together and prepare it for launch. landedAt can be any string; it is only used to tell the ship where it launched from. |
int CheckCraftFileType(string filePath) | ? |
string GetShipsSubfolderFor(GameScenes scene) | Gets the folder in which ships for the current scene are stored. |
ShipConstruct LoadShip(string filePath) | Load a ship. If filePath is not given, load the last ship used in the VAB. |
void PutShipToGround(ShipConstruct ship, UnityEngine.Transform spawnPoint) | Places the bottom of the ship at the specified point. |