Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Expansions.Missions.MissionCraft Class Reference

Public Member Functions

void Clear ()
 
string GetPartNameInVessel (uint persistentId)
 Gets the part name in the craft More...
 
uint GetPartPersistentId (ConfigNode node)
 Gets the part id value form a Part node, if part don't have a persistent id generates one More...
 
 MissionCraft (string craftFolder, string craftFile)
 

Public Attributes

string craftFile
 filename of the associated craft file More...
 
string craftFolder
 folder that the associated craft file is located in More...
 
uint craftPersistentId
 Will be set to the craft PersistentId More...
 
string facility = ""
 Set to the Editor Facility vessel is to be playerCreated in. Will be empty if playerCreated is false. If playerCreated is true will contain "VAB" or "SPH". This is so that the Mission System can match the Craft / Folder with the correct one in the mission. More...
 
bool mappedItem = false
 Set to true for mapped Vessel Items (A Part Vessel Rename entry) More...
 
string mappedVesselName = ""
 Set this to the Part Vessel Rename vessel name. More...
 
uint rootPartPersistentId
 Will be set to the root part PersistentId More...
 

Protected Member Functions

string GetPartName (ConfigNode node)
 Gets the part name value from a Part node More...
 

Properties

ConfigNode CraftNode [get]
 Retrieves the ConfigNode contents of the craft file - caches them so we only parse the file once (it's expensive) More...
 
uint persistentId [get]
 Get the Craft's perisistentId from the confignode More...
 
string VesselName [get]
 Get the Craft's Name from the confignode More...
 

Constructor & Destructor Documentation

Expansions.Missions.MissionCraft.MissionCraft ( string  craftFolder,
string  craftFile 
)
inline

Member Function Documentation

void Expansions.Missions.MissionCraft.Clear ( )
inline
string Expansions.Missions.MissionCraft.GetPartName ( ConfigNode  node)
inlineprotected

Gets the part name value from a Part node

Parameters
nodePart node
Returns
string Expansions.Missions.MissionCraft.GetPartNameInVessel ( uint  persistentId)
inline

Gets the part name in the craft

Parameters
persistentIdPart persistent id
Returns
the PartName or not found string
uint Expansions.Missions.MissionCraft.GetPartPersistentId ( ConfigNode  node)
inline

Gets the part id value form a Part node, if part don't have a persistent id generates one

Parameters
nodePart node
Returns

Member Data Documentation

string Expansions.Missions.MissionCraft.craftFile

filename of the associated craft file

string Expansions.Missions.MissionCraft.craftFolder

folder that the associated craft file is located in

uint Expansions.Missions.MissionCraft.craftPersistentId

Will be set to the craft PersistentId

string Expansions.Missions.MissionCraft.facility = ""

Set to the Editor Facility vessel is to be playerCreated in. Will be empty if playerCreated is false. If playerCreated is true will contain "VAB" or "SPH". This is so that the Mission System can match the Craft / Folder with the correct one in the mission.

bool Expansions.Missions.MissionCraft.mappedItem = false

Set to true for mapped Vessel Items (A Part Vessel Rename entry)

string Expansions.Missions.MissionCraft.mappedVesselName = ""

Set this to the Part Vessel Rename vessel name.

uint Expansions.Missions.MissionCraft.rootPartPersistentId

Will be set to the root part PersistentId

Property Documentation

ConfigNode Expansions.Missions.MissionCraft.CraftNode
get

Retrieves the ConfigNode contents of the craft file - caches them so we only parse the file once (it's expensive)

uint Expansions.Missions.MissionCraft.persistentId
get

Get the Craft's perisistentId from the confignode

string Expansions.Missions.MissionCraft.VesselName
get

Get the Craft's Name from the confignode


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