|
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...
|
|
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
-
node | Parts CN |
moduleName | The 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
-
node | Parts CN |
loadContext | how its being loaded |
- Returns
- string of part name (contains partID if its a craft)
Get the position vector from a part node
- Parameters
-
node | Parts CN |
loadContext | how its being loaded |
- Returns
- string of pos vector
Get the position vector from a part node
- Parameters
-
node | Parts CN |
loadContext | how 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
-
node | Parts CN |
loadContext | how its being loaded |
newNameValue | new 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
-
node | Parts CN |
loadContext | how its being loaded |
newPos | Vector3 of new position |
static void SaveUpgradePipeline.NodeUtil.SetPartRotation |
( |
ConfigNode |
node, |
|
|
LoadContext |
loadContext, |
|
|
Quaternion |
newRot |
|
) |
| |
|
inlinestatic |
Set the rotation quaternion for a part node
- Parameters
-
node | Parts CN |
loadContext | how its being loaded |
newRot | Quaternion of the new rotation |
The documentation for this class was generated from the following file:
- KSP/Assets/Scripts/Util Scripts/UpgradePipeline/NodeUtil.cs