Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Properties | List of all members
SaveUpgradePipeline.v110_WheelModuleOverhaul Class Reference
Inheritance diagram for SaveUpgradePipeline.v110_WheelModuleOverhaul:
SaveUpgradePipeline.UpgradeScript

Public Types

enum  OldGearDeploymentStates {
  OldGearDeploymentStates.RETRACTED = 0, OldGearDeploymentStates.DEPLOYED = 1, OldGearDeploymentStates.DEPLOYING, OldGearDeploymentStates.RETRACTING,
  OldGearDeploymentStates.UNDEFINED = 4
}
 
enum  OldLegDeploymentStates {
  OldLegDeploymentStates.RETRACTED = 0, OldLegDeploymentStates.RETRACTING = 1, OldLegDeploymentStates.DEPLOYING = 2, OldLegDeploymentStates.DEPLOYED = 3,
  OldLegDeploymentStates.BROKEN = 4, OldLegDeploymentStates.REPAIRING = 5
}
 

Public Member Functions

override TestResult OnTest (ConfigNode node, LoadContext loadContext, ref string nodeName)
 
override void OnUpgrade (ConfigNode node, LoadContext loadContext, ConfigNode parentNode)
 The OnUpgrade method that is called when a node has tested successfully and will be actioned More...
 
- Public Member Functions inherited from SaveUpgradePipeline.UpgradeScript
bool AppliesInContext (LoadContext ctx)
 
void Init (LoadContext contextMask, string nodeUrlCraft, string nodeUrlSFS)
 
virtual TestResult Test (ConfigNode n, LoadContext loadContext)
 
override string ToString ()
 
virtual void Upgrade (ConfigNode n, LoadContext loadContext)
 

Protected Member Functions

void SalvageSteering (ConfigNode dstNode, ConfigNode mNode, LoadContext loadContext)
 
- Protected Member Functions inherited from SaveUpgradePipeline.UpgradeScript
virtual bool CheckMaxVersion (Version v)
 
virtual bool CheckMinVersion (Version v)
 
virtual Version GetCfgNodeVersion (ConfigNode n, LoadContext loadContext)
 
string GetNodeURL (LoadContext loadContext)
 
void LogTestResults (string nodeName, TestResult test)
 
virtual void OnInit ()
 
void RecurseNodes (ConfigNode node, string[] urlNodes, int level, Callback< ConfigNode, ConfigNode > cb, ConfigNode parent=null)
 
virtual TestResult VersionTest (Version v)
 

Static Protected Member Functions

static void SalvageBrakes (ConfigNode dstNode, ConfigNode mNode, LoadContext loadContext)
 
static void SalvageDamage (ConfigNode dstNode, ConfigNode mNode, LoadContext loadContext)
 
static void SalvageGearDeployment (ConfigNode dstNode, ConfigNode mNode, LoadContext loadContext)
 
static void SalvageLegDeployment (ConfigNode dstNode, ConfigNode mNode, LoadContext loadContext)
 
static void SalvageMotor (ConfigNode dstNode, ConfigNode mNode, LoadContext loadContext)
 

Properties

override string Description [get]
 
override Version EarliestCompatibleVersion [get]
 
override string Name [get]
 
override Version TargetVersion [get]
 
- Properties inherited from SaveUpgradePipeline.UpgradeScript
abstract string Description [get]
 
abstract Version EarliestCompatibleVersion [get]
 
abstract string Name [get]
 
abstract Version TargetVersion [get]
 

Additional Inherited Members

- Public Attributes inherited from SaveUpgradePipeline.UpgradeScript
LoadContext ContextMask
 
- Protected Attributes inherited from SaveUpgradePipeline.UpgradeScript
string nodeUrlCraft
 
string nodeUrlSFS
 

Member Enumeration Documentation

Enumerator
RETRACTED 
DEPLOYED 
DEPLOYING 
RETRACTING 
UNDEFINED 
Enumerator
RETRACTED 
RETRACTING 
DEPLOYING 
DEPLOYED 
BROKEN 
REPAIRING 

Member Function Documentation

override TestResult SaveUpgradePipeline.v110_WheelModuleOverhaul.OnTest ( ConfigNode  node,
LoadContext  loadContext,
ref string  nodeName 
)
inlinevirtual
override void SaveUpgradePipeline.v110_WheelModuleOverhaul.OnUpgrade ( ConfigNode  node,
LoadContext  loadContext,
ConfigNode  parentNode 
)
inlinevirtual

The OnUpgrade method that is called when a node has tested successfully and will be actioned

Parameters
nodeThe node to be actioned
loadContextWhat load context is the node being accessed in
parentNodeThe parent of this node from the recurse process - typically used to get the vessel from a part

Implements SaveUpgradePipeline.UpgradeScript.

static void SaveUpgradePipeline.v110_WheelModuleOverhaul.SalvageBrakes ( ConfigNode  dstNode,
ConfigNode  mNode,
LoadContext  loadContext 
)
inlinestaticprotected
static void SaveUpgradePipeline.v110_WheelModuleOverhaul.SalvageDamage ( ConfigNode  dstNode,
ConfigNode  mNode,
LoadContext  loadContext 
)
inlinestaticprotected
static void SaveUpgradePipeline.v110_WheelModuleOverhaul.SalvageGearDeployment ( ConfigNode  dstNode,
ConfigNode  mNode,
LoadContext  loadContext 
)
inlinestaticprotected
static void SaveUpgradePipeline.v110_WheelModuleOverhaul.SalvageLegDeployment ( ConfigNode  dstNode,
ConfigNode  mNode,
LoadContext  loadContext 
)
inlinestaticprotected
static void SaveUpgradePipeline.v110_WheelModuleOverhaul.SalvageMotor ( ConfigNode  dstNode,
ConfigNode  mNode,
LoadContext  loadContext 
)
inlinestaticprotected
void SaveUpgradePipeline.v110_WheelModuleOverhaul.SalvageSteering ( ConfigNode  dstNode,
ConfigNode  mNode,
LoadContext  loadContext 
)
inlineprotected

< add the same info again for the diff steering module. The part will load the data from the modules it has (and ignore the ones it doens't, IINM)

Property Documentation

override string SaveUpgradePipeline.v110_WheelModuleOverhaul.Description
get
override Version SaveUpgradePipeline.v110_WheelModuleOverhaul.EarliestCompatibleVersion
get
override string SaveUpgradePipeline.v110_WheelModuleOverhaul.Name
get
override Version SaveUpgradePipeline.v110_WheelModuleOverhaul.TargetVersion
get

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