Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
SaveUpgradePipeline.NodeUtil Class Reference

Static Public Member Functions

static Version GetCfgVersion (ConfigNode n, LoadContext loadContext)
 
static ConfigNode[] GetModuleNodesNamed (ConfigNode node, string moduleName)
 Get an array of MODULE configNodes from node that have a name equal to moduleName. More...
 
static string GetPartNodeNameValue (ConfigNode node, LoadContext loadContext)
 Get the Part name from a Part node More...
 
static string GetPartPosition (ConfigNode node, LoadContext loadContext)
 Get the position vector from a part node More...
 
static string GetPartRotation (ConfigNode node, LoadContext loadContext)
 Get the position vector from a part node More...
 
static void SetPartNodeNameValue (ConfigNode node, LoadContext loadContext, string newNameValue)
 Set the Part name for a part node More...
 
static void SetPartPosition (ConfigNode node, LoadContext loadContext, Vector3 newPos)
 Set the position vector for a part node More...
 
static void SetPartRotation (ConfigNode node, LoadContext loadContext, Quaternion newRot)
 Set the rotation quaternion for a part node More...
 

Member Function Documentation

static Version SaveUpgradePipeline.NodeUtil.GetCfgVersion ( ConfigNode  n,
LoadContext  loadContext 
)
inlinestatic
static ConfigNode [] SaveUpgradePipeline.NodeUtil.GetModuleNodesNamed ( ConfigNode  node,
string  moduleName 
)
inlinestatic

Get an array of MODULE configNodes from node that have a name equal to moduleName.

Parameters
nodeParts CN
moduleNameThe NODULE name we are looking for.
Returns
An array of matching nodes, or Null if none found.
static string SaveUpgradePipeline.NodeUtil.GetPartNodeNameValue ( ConfigNode  node,
LoadContext  loadContext 
)
inlinestatic

Get the Part name from a Part node

Parameters
nodeParts CN
loadContexthow its being loaded
Returns
string of part name (contains partID if its a craft)
static string SaveUpgradePipeline.NodeUtil.GetPartPosition ( ConfigNode  node,
LoadContext  loadContext 
)
inlinestatic

Get the position vector from a part node

Parameters
nodeParts CN
loadContexthow its being loaded
Returns
string of pos vector
static string SaveUpgradePipeline.NodeUtil.GetPartRotation ( ConfigNode  node,
LoadContext  loadContext 
)
inlinestatic

Get the position vector from a part node

Parameters
nodeParts CN
loadContexthow its being loaded
Returns
string of pos vector
static void SaveUpgradePipeline.NodeUtil.SetPartNodeNameValue ( ConfigNode  node,
LoadContext  loadContext,
string  newNameValue 
)
inlinestatic

Set the Part name for a part node

Parameters
nodeParts CN
loadContexthow its being loaded
newNameValuenew part name (should contain partID if its a craft)
static void SaveUpgradePipeline.NodeUtil.SetPartPosition ( ConfigNode  node,
LoadContext  loadContext,
Vector3  newPos 
)
inlinestatic

Set the position vector for a part node

Parameters
nodeParts CN
loadContexthow its being loaded
newPosVector3 of new position
static void SaveUpgradePipeline.NodeUtil.SetPartRotation ( ConfigNode  node,
LoadContext  loadContext,
Quaternion  newRot 
)
inlinestatic

Set the rotation quaternion for a part node

Parameters
nodeParts CN
loadContexthow its being loaded
newRotQuaternion of the new rotation

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