![]() |
Kerbal Space Program
1.12.4
|
Public Member Functions | |
| void | Add (Part p) |
| bool | AreAllPartsConnected () |
| void | Clear () |
| bool | Contains (Part p) |
| void | GetConnectedResourceTotals (int id, bool simulate, out double amount, out double maxAmount, bool pulling=true) |
| Gets the amount and maxamount of the given resource in the resourcePartSet. If the resourcePartSet has not been created via UpdateResourceSets will return zero. More... | |
| IEnumerator< Part > | GetEnumerator () |
| float | GetShipCosts (out float dryCost, out float fuelCost) |
| Get the drycost and fuelcost for the Ship. Does NOT account for assigned crew. More... | |
| float | GetShipCosts (out float dryCost, out float fuelCost, VesselCrewManifest vcm) |
| Get the drycost and fuel cost for the Ship. Does account for assigned crew from the passed in VesselCrewManifest. More... | |
| float | GetShipMass (out float dryMass, out float fuelMass) |
| Get the dryMass and fuelMass for the Ship. Does NOT account for assigned crew mass. More... | |
| float | GetShipMass (out float dryMass, out float fuelMass, VesselCrewManifest vcm) |
| Get the dryMass and fuelMass for the Ship. Does account for assigned crew inventory mass. More... | |
| float | GetTotalMass () |
| Get the Total Mass of the Ship. DOES account for crew inventory mass. Uses ShipConstruction.ShipManifest. More... | |
| bool | isControllable () |
| Returns true if at least one part on this ship is flagged as a control source More... | |
| bool | LoadShip (ConfigNode root, uint persistentID) |
| Loads a ship from a craft config node with the supplied persistent id. This WILL create a VesselDeltaV Object. So make sure you destroy it when done. More... | |
| bool | LoadShip (ConfigNode root) |
| Loads a ship from a craft config node More... | |
| void | Remove (Part p) |
| double | RequestResource (Part part, int id, double demand, bool usePriority, bool simulate) |
| Request a resource from across the vessel. If the resourcePartSet has not been created via UpdateResourceSets will return zero. More... | |
| ConfigNode | SaveShip () |
| ShipConstruct () | |
| Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required. More... | |
| ShipConstruct (EditorFacility facility) | |
| Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required. More... | |
| ShipConstruct (string shipName, EditorFacility facility, List< Part > parts) | |
| Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required. More... | |
| ShipConstruct (string shipName, string shipDescription, Part rootPart) | |
| Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required. More... | |
| ShipConstruct (string shipName, string shipDescription, List< Part > parts) | |
| Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required. More... | |
| void | UpdateResourceSets () |
| Update the crossfeed PartSets for the Ship. More... | |
Public Attributes | |
| string | missionFlag = "" |
| KSPActionGroup[] | OverrideActionControl |
| Flags for whether each action group overrides the default vessel controls. More... | |
| KSPAxisGroup[] | OverrideAxisControl |
| Flags for whether each axis group overrides the default vessel controls. More... | |
| bool[] | OverrideDefault |
| Flags for whether each override group overrides the default group (true) or merges with the default group (false). More... | |
| string[] | OverrideGroupNames |
| Names for the override groups (default is always default) More... | |
| List< Part > | parts |
| uint | persistentId = 0 |
| PartSet | resourcePartSet |
| The ship partset. More... | |
| Quaternion | rotation |
| string | shipDescription = string.Empty |
| EditorFacility | shipFacility |
| string | shipName = string.Empty |
| bool | shipPartsUnlocked = true |
| Vector3 | shipSize |
| ulong | steamPublishedFileId = 0 |
| This is the steam published FileId for this mission if it has been published to steam. More... | |
| VesselDeltaV | vesselDeltaV |
| This is the VesselDeltaV instance for this ShipConstruct. More... | |
Static Public Attributes | |
| static int | lastCompatibleMajor = 0 |
| static int | lastCompatibleMinor = 18 |
| static int | lastCompatibleRev = 0 |
Properties | |
| int | Count [get] |
| List< Part > | Parts [get] |
| Part | this[int index] [get, set] |
Properties inherited from IShipconstruct | |
| List< Part > | Parts [get] |
|
inline |
Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required.
|
inline |
Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required.
| facility | The editorfacility to set |
|
inline |
Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required.
| shipName | The name to assign to the ship |
| facility | The editorfacility to set |
| parts | The list of parts to assign to the ship |
|
inline |
Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required.
| shipName | The name to assign to the ship |
| shipDescription | The ship description to set |
| rootPart | The root part to set |
|
inline |
Create a ShipConstruct. Does NOT Instantiate VesselDeltaV object. Use VesselDeltaV.Create to instantiate the object if required.
| shipName | The name to assign to the ship |
| shipDescription | The ship description to set |
| parts | The list of parts to assign to the ship |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets the amount and maxamount of the given resource in the resourcePartSet. If the resourcePartSet has not been created via UpdateResourceSets will return zero.
| id | the hash of the resource |
| simulate | Set to true to use the simulationResourcePartSet |
| amount | available amount will be stored here (will be headroom if pulling==false) |
| maxAmount | max possible amount will be stored here |
| pulling | are we planning to push or pull resources from the parts |
|
inline |
|
inline |
Get the drycost and fuelcost for the Ship. Does NOT account for assigned crew.
| dryCost | |
| fuelCost |
|
inline |
Get the drycost and fuel cost for the Ship. Does account for assigned crew from the passed in VesselCrewManifest.
| dryCost | |
| fuelCost | |
| vcm |
< figure out how much of a part's total cost is comprised of resources inside it.
|
inline |
Get the dryMass and fuelMass for the Ship. Does NOT account for assigned crew mass.
| dryMass | |
| fuelMass |
|
inline |
Get the dryMass and fuelMass for the Ship. Does account for assigned crew inventory mass.
| dryMass | |
| fuelMass | |
| vcm |
< part.mass describes its dry mass, so just add all mass for any resources it contains
|
inline |
Get the Total Mass of the Ship. DOES account for crew inventory mass. Uses ShipConstruction.ShipManifest.
|
inline |
Returns true if at least one part on this ship is flagged as a control source
|
inline |
Loads a ship from a craft config node with the supplied persistent id. This WILL create a VesselDeltaV Object. So make sure you destroy it when done.
| root | Craft config node |
| persistentID | Vessel persistent id |
|
inline |
Loads a ship from a craft config node
| root | Craft config node |
|
inline |
|
inline |
Request a resource from across the vessel. If the resourcePartSet has not been created via UpdateResourceSets will return zero.
| part | The part requesting the pull/push of the resource |
| id | the hash of the resource |
| demand | the demand in units, positive means draw (pull), negative means push |
| usePriority | draw in staging order |
| simulate | Set to true to use the simulationResourcePartSet |
|
inline |
< try recalculating ship size here again, some ctors don't have enough info to set it up correctly there.
|
inline |
Update the crossfeed PartSets for the Ship.
|
static |
|
static |
|
static |
| string ShipConstruct.missionFlag = "" |
| KSPActionGroup [] ShipConstruct.OverrideActionControl |
Flags for whether each action group overrides the default vessel controls.
| KSPAxisGroup [] ShipConstruct.OverrideAxisControl |
Flags for whether each axis group overrides the default vessel controls.
| bool [] ShipConstruct.OverrideDefault |
Flags for whether each override group overrides the default group (true) or merges with the default group (false).
| string [] ShipConstruct.OverrideGroupNames |
Names for the override groups (default is always default)
| List<Part> ShipConstruct.parts |
| uint ShipConstruct.persistentId = 0 |
| PartSet ShipConstruct.resourcePartSet |
The ship partset.
| Quaternion ShipConstruct.rotation |
| string ShipConstruct.shipDescription = string.Empty |
| EditorFacility ShipConstruct.shipFacility |
| string ShipConstruct.shipName = string.Empty |
| bool ShipConstruct.shipPartsUnlocked = true |
| Vector3 ShipConstruct.shipSize |
| ulong ShipConstruct.steamPublishedFileId = 0 |
This is the steam published FileId for this mission if it has been published to steam.
| VesselDeltaV ShipConstruct.vesselDeltaV |
This is the VesselDeltaV instance for this ShipConstruct.
|
get |
|
get |
|
getset |
1.8.7