Kerbal Space Program
1.12.4
|
Classes | |
class | ReflectedAttributes |
Public Types | |
enum | PartUpgradeState { PartUpgradeState.NONE, PartUpgradeState.LOCKED, PartUpgradeState.AVAILABLE } |
enum | StartState { StartState.None = 0, StartState.Editor = 1, StartState.PreLaunch = 2, StartState.Landed = 4, StartState.Docked = 8, StartState.Flying = 16, StartState.Splashed = 32, StartState.SubOrbital = 64, StartState.Orbital = 128 } |
Public Member Functions | |||||||
void | AddPartModuleAdjuster (AdjusterPartModuleBase newAdjuster) | ||||||
Call this to add an adjuster to this part module. More... | |||||||
void | AddPartModuleAdjusterList (List< AdjusterPartModuleBase > moduleAdjusters) | ||||||
Applies the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too. More... | |||||||
bool | AppliedUpgrades () | ||||||
Returns true if upgrades are applied More... | |||||||
void | ApplyAdjustersOnStart () | ||||||
Called when a part module is loaded and applies all of the currently loaded adjusters. More... | |||||||
virtual void | ApplyUpgradeNode (List< string > appliedUps, ConfigNode node, bool doLoad) | ||||||
Applies the upgrades to a confignode. Will either copy the upgrades back to the node or (if doLoad) calls load/onload on it. More... | |||||||
virtual bool | ApplyUpgrades (StartState state) | ||||||
Will find and apply upgrades. Called during Part's ModulesOnStart, before a module's OnStart. More... | |||||||
void | Awake () | ||||||
delegate bool | boolPMApplyUpgrades (PartModule pm, StartState state) | ||||||
delegate bool | boolPMBoolDelegate (PartModule pm, bool apply) | ||||||
void | ClearPersistentId () | ||||||
Clear the modules persistentId More... | |||||||
void | Copy (PartModule fromModule) | ||||||
virtual void | DemoteToPhysicslessPart () | ||||||
This method will be called from Part class DemoteToPhysicslessPart when the part is being converted from physical to physicsless part. It is called before the joints and rigidbodies are destroyed. More... | |||||||
virtual bool | FindUpgrades (bool fillApplied, ConfigNode node=null) | ||||||
Find applicable upgrades to the partmodule (isunlocked and isenabled) and add to the upgradesApplied list. Pass true if you want to add the upgrades to upgradesApplied, false if you just want to know if at least one upgrade is applicable (unlocked rather than enabled) More... | |||||||
virtual Color | GetCurrentColor () | ||||||
Returns the current part module color. More... | |||||||
virtual Color | GetCurrentColor (string fieldName) | ||||||
Returns the current part module color for a field where usespe. More... | |||||||
virtual string | GetInfo () | ||||||
Returns formatted string of additional data for use in the VAB and SPH More... | |||||||
virtual string | GetModuleDisplayName () | ||||||
Override this to provide a Localized version of the PartModules Name for UI components More... | |||||||
uint | GetPersistenActiontId () | ||||||
Get the modules persistentID, and create one if it doesnt already have one More... | |||||||
uint | GetPersistentId () | ||||||
Get the modules persistentID, and create one if it doesnt already have one More... | |||||||
virtual string | GetStagingDisableText () | ||||||
virtual string | GetStagingEnableText () | ||||||
virtual string | GetUpgradeInfo () | ||||||
Called by Upgrade Stats dialog More... | |||||||
bool | HasUpgrades () | ||||||
Returns true if upgrades exist for the partmodule More... | |||||||
virtual bool | IsStageable () | ||||||
Should this module be counted when seeing whether to have a stack icon present? Override in a module for custom behavior; otherwise returns true if the module (or something the module inherits from above PartModule itself) overrides OnActive() More... | |||||||
bool | IsValidContractObjective (string objectiveType) | ||||||
Returns if, for example, an antenna part module qualifies as an antenna for contracts. More... | |||||||
void | Load (ConfigNode node) | ||||||
virtual void | LoadUpgrades (ConfigNode node) | ||||||
Loads module-relevant upgrades from the partmodule confignode More... | |||||||
uint | NewPersistentId () | ||||||
Reset the modules persistentId to a new number More... | |||||||
virtual void | OnActive () | ||||||
Called when the part is set active (after unpacking etc) More... | |||||||
virtual void | OnAwake () | ||||||
Method fires once the module has been added to the part. Use for first time setup. Module will not have loaded fully by this point More... | |||||||
virtual void | OnColorChanged (Color color) | ||||||
Meant to be overwritten by part modules implementing color changes. In this case, it doesn't matter which color picker changed specifically. More... | |||||||
virtual void | OnColorChanged (Color color, string pickerID="") | ||||||
Meant to be overwritten by part modules implementing color changes More... | |||||||
virtual void | OnConstructionModeFixedUpdate () | ||||||
This method will be called when in EVA Construction mode and this part and itself is disabled (when it is not attached to a vessel) every FixedUpdate(). More... | |||||||
virtual void | OnConstructionModeUpdate () | ||||||
This method will be called when in EVA Construction mode and this part and itself is disabled (when it is not attached to a vessel) every Update(). More... | |||||||
virtual void | OnCopy (PartModule fromModule) | ||||||
Use OnCopy to copy any additional data from the PartModule provided More... | |||||||
virtual void | OnFixedUpdate () | ||||||
Called every physics/fixed frame that the part is active More... | |||||||
virtual void | OnIconCreate () | ||||||
Method fires just before components are stripped from the gameobject to make it an icon. (The part is instantiated and then various components like Part, PartModule, EffectBehaviour, Colliders, Particles, etc are stripped and then it's set as the icon prefab. This lets PartModules do stuff to the model right before that happens. More... | |||||||
virtual void | OnInactive () | ||||||
Called before the part goes inactive (after packing etc) More... | |||||||
virtual void | OnInitialize () | ||||||
Called on all modules after all parts are loaded but before they give the ship to the game More... | |||||||
virtual void | OnInventoryModeDisable () | ||||||
This method will be called when this modules part and itself is first disabled (when it is not attached to a vessel) when created in Inventory/Construction mode. More... | |||||||
virtual void | OnInventoryModeEnable () | ||||||
This method will be called when this modules part and itself is first enabled (when it is attached to a vessel) when created in Inventory/Construction mode. More... | |||||||
virtual void | OnLoad (ConfigNode node) | ||||||
Use OnLoad to load any additional data from the ConfigNode provided More... | |||||||
void | OnModuleAdjusterAddedWrapper (AdjusterPartModuleBase adjuster) | ||||||
Wrapper to check the mission expansion availability before performing processing specific to this part module when an adjuster is added. More... | |||||||
virtual void | OnModuleAdjusterRemoved (AdjusterPartModuleBase adjuster) | ||||||
Perform processing specific to this part module when an adjuster is removed. By default this does nothing is up to each part module to implement it properly. More... | |||||||
virtual void | OnPartCreatedFomInventory (ModuleInventoryPart moduleInventoryPart) | ||||||
This method is called when a part is being taken out from a slot while being in EVAConstruction mode. More... | |||||||
virtual void | OnSave (ConfigNode node) | ||||||
Use OnSave to serialize additional module information into the ConfigNode provided More... | |||||||
virtual void | OnStart (StartState state) | ||||||
Called when the part starts. The StartState gives an indication of where in flight you are. All values may not be plugged in! More... | |||||||
virtual void | OnStartBeforePartAttachJoint (StartState state) | ||||||
Called in flight scene in Part.Start just before the Part attachnode joints are created. More... | |||||||
virtual void | OnStartFinished (StartState state) | ||||||
Called when the part finishes starting. The StartState gives an indication of where in flight you are. All values may not be plugged in! More... | |||||||
virtual void | OnStoredInInventory (ModuleInventoryPart moduleInventoryPart) | ||||||
Called when the part is stored in an inventory. More... | |||||||
virtual void | OnUpdate () | ||||||
Called every frame that the part is active More... | |||||||
virtual void | OnWasCopied (PartModule copyPartModule, bool asSymCounterpart) | ||||||
Called when the PartModule was copied, through Alt+Copy or symmetry More... | |||||||
virtual void | OnWillBeCopied (bool asSymCounterpart) | ||||||
Called when the PartModule is about to be copied, through Alt+Copy or symmetry More... | |||||||
virtual bool | OnWillBeMirrored (ref Quaternion rotation, AttachNode selPartNode, Part partParent) | ||||||
This is called in the Editor scene when a symmetry copy of a part is being positioned. Only called on the symmetry parts and only when symmetry mode is set to Mirror. It allows the mirror rotation to be changed and returned before being applied to the symmetry copy part.
| |||||||
virtual List< Color > | PresetColors () | ||||||
Preset colors received for any part module. By default, returns only black, override to make your own selection. More... | |||||||
virtual string | PrintUpgrades () | ||||||
virtual void | PromoteToPhysicalPart () | ||||||
This method will be called from Part class PromoteToPhysicalPart when the part is being converted from physicsless to physical part. More... | |||||||
void | RemovePartModuleAdjuster (AdjusterPartModuleBase oldAdjuster) | ||||||
Call this to remove an adjuster from this part module. More... | |||||||
void | RemovePartModuleAdjusterList (List< AdjusterPartModuleBase > moduleAdjusters) | ||||||
Removes the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too. More... | |||||||
void | Save (ConfigNode node) | ||||||
virtual void | SetStaging (bool newValue) | ||||||
Run by the part's staging toggle handler, sets staging on modules on symmetry counterparts. More... | |||||||
void | SetStagingState (bool newState) | ||||||
Set the staging enabled bool for this module. More... | |||||||
virtual bool | StagingEnabled () | ||||||
Gets current staging status (is staging enabled for this module) Override me! More... | |||||||
virtual bool | StagingToggleEnabledEditor () | ||||||
virtual bool | StagingToggleEnabledFlight () | ||||||
void | ToggleStaging () | ||||||
virtual void | UpdateStagingToggle () | ||||||
Updates the staging toggle More... | |||||||
delegate void | voidPMApplyNodeDelegate (PartModule pm, List< string > appliedUps, ConfigNode node, bool doLoad) | ||||||
delegate void | voidPMDelegate (PartModule pm) | ||||||
delegate void | voidPMNodeDelegate (PartModule pm, ConfigNode node) | ||||||
Static Public Member Functions | |
static ReflectedAttributes | GetReflectedAttributes (Type partModuleType) |
static PartUpgradeState | UpgradesAvailable (Part part) |
Returns true if at least one module on the part has at least one upgrade available (isUnlocked) More... | |
static PartUpgradeState | UpgradesAvailable (Part part, ConfigNode node) |
Returns true if at least one module on the part has at least one upgrade available (isUnlocked) More... | |
Public Attributes | |
bool | isEnabled = true |
bool | moduleIsEnabled = true |
string | moduleName |
bool | overrideStagingIconIfBlank = true |
ModuleResourceHandler | resHandler = new ModuleResourceHandler() |
bool | showUpgradesInModuleInfo = false |
ProtoPartModuleSnapshot | snapshot |
string | stagingDisableText = "" |
bool | stagingEnabled = true |
string | stagingEnableText = "" |
bool | stagingToggleEnabledEditor = false |
bool | stagingToggleEnabledFlight = false |
List< ConfigNode > | upgrades |
List< string > | upgradesApplied = new List<string>() |
bool | upgradesApply = true |
bool | upgradesAsk = true |
Static Public Attributes | |
static voidPMApplyNodeDelegate | ApplyUpgradeNodeDel |
static boolPMApplyUpgrades | ApplyUpgradesDel |
static bool | ApplyUpgradesEditorAuto = true |
static boolPMBoolDelegate | FindUpgradesDel |
static voidPMNodeDelegate | LoadExpansionNodes |
Hook for loading extra nodes common to all part modules. More... | |
static voidPMNodeDelegate | LoadUpgradesDel |
static voidPMNodeDelegate | SaveExpansionNodes |
Hook for saving extra nodes common to all part modules. More... | |
static voidPMDelegate | SetupExpansion |
Hook for performing extra setup common to all part modules. More... | |
static string | UpgradesAvailableString = "#autoLOC_6002273" |
static string | UpgradesLockedString = "#autoLOC_6002274" |
Protected Member Functions | |
ConfigNode | GetUpgrade (string name) |
virtual void | LoadUpgradesApplied (List< string > applieds, ConfigNode node) |
Load the applied upgrade names More... | |
virtual void | OnModuleAdjusterAdded (AdjusterPartModuleBase adjuster) |
Perform processing specific to this part module when an adjuster is added. By default this does nothing is up to each part module to implement it properly. More... | |
virtual void | SaveUpgradesApplied (ConfigNode node) |
Save the applied upgrades. More... | |
IEnumerator | UpgradeWaitForScenarioModules () |
Static Protected Attributes | |
static Dictionary< string, ConfigNode > | exclusives = new Dictionary<string, ConfigNode>() |
static Dictionary< Type, ReflectedAttributes > | reflectedAttributeCache = new Dictionary<Type, ReflectedAttributes>() |
Properties | |
BaseActionList | Actions [get] |
int | ClassID [get] |
string | ClassName [get] |
List< AdjusterPartModuleBase > | CurrentModuleAdjusterList [get] |
List of all the module adjusters that are currently active on this part module. More... | |
BaseEventList | Events [get] |
BaseFieldList | Fields [get] |
string | GUIName [get] |
bool | HasAdjusters [get] |
Has this part module been adjusted? More... | |
ReflectedAttributes | ModuleAttributes [get, set] |
Part | part [get, set] |
uint | PersistentActionsId [get, set] |
A unique identifier for each vessel including from when it was Shipconstruct More... | |
uint | PersistentId [get] |
A unique identifier for each vessel including from when it was Shipconstruct More... | |
Vessel | vessel [get] |
|
inline |
Call this to add an adjuster to this part module.
newAdjuster | New adjuster to be applied to part module. |
|
inline |
Applies the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too.
moduleAdjusters | List of module adjusters to apply |
|
inline |
Returns true if upgrades are applied
|
inline |
Called when a part module is loaded and applies all of the currently loaded adjusters.
|
inlinevirtual |
Applies the upgrades to a confignode. Will either copy the upgrades back to the node or (if doLoad) calls load/onload on it.
appliedUps | The list of applied upgrades to draw from. Usually upgradesApplied |
node | The node to compare against and remove anything in the upgrade that is in the node (i.e. don't touch persistent fields) |
doLoad | Do we copy to the node (if false), or create a new node and load from it (true)? |
< If we're exclusive, clear before going on, else overwrite
|
inlinevirtual |
Will find and apply upgrades. Called during Part's ModulesOnStart, before a module's OnStart.
state |
< yeah a bit garbagey but whatever.
|
inline |
delegate bool PartModule.boolPMApplyUpgrades | ( | PartModule | pm, |
StartState | state | ||
) |
delegate bool PartModule.boolPMBoolDelegate | ( | PartModule | pm, |
bool | apply | ||
) |
|
inline |
Clear the modules persistentId
|
inline |
|
inlinevirtual |
This method will be called from Part class DemoteToPhysicslessPart when the part is being converted from physical to physicsless part. It is called before the joints and rigidbodies are destroyed.
Reimplemented in Expansions.Serenity.BaseServo, ModuleWheelBase, ModuleDockingNode, and RetractableLadder.
|
inlinevirtual |
Find applicable upgrades to the partmodule (isunlocked and isenabled) and add to the upgradesApplied list. Pass true if you want to add the upgrades to upgradesApplied, false if you just want to know if at least one upgrade is applicable (unlocked rather than enabled)
fillApplied |
< refresh upgrades list
< If there's nothing to apply, bail out.
|
inlinevirtual |
|
inlinevirtual |
Returns the current part module color for a field where usespe.
fieldName | The fieldname we are looking for the color from |
Reimplemented in ModulePartFirework.
|
inlinevirtual |
Returns formatted string of additional data for use in the VAB and SPH
Reimplemented in PartStatsUpgradeModule, ModuleProceduralFairing, ModuleEngines, ModuleDockingNode, ModuleInventoryPart, Expansions.Serenity.ModuleRobotArmScanner, ModuleScienceExperiment, Expansions.Serenity.ModuleRoboticController, ModuleLight, Expansions.Serenity.BaseServo, ModuleGrappleNode, ModuleWheelBase, Expansions.Serenity.ModuleRoboticServoHinge, Expansions.Serenity.ModuleRoboticRotationServo, Expansions.Serenity.ModuleRoboticServoRotor, ModuleDataTransmitter, ModuleCommand, ModuleDeployablePart, ModulePartVariants, ModuleGroundSciencePart, ModuleControlSurface, Expansions.Serenity.ModuleRoboticServoPiston, ModuleCoreHeat, ModuleParachute, ModuleServiceModule, ModuleScienceLab, ModuleRCS, ModuleActiveRadiator, ModuleLiftingSurface, ModuleGimbal, ModuleReactionWheel, ModuleAblator, ModuleDecouple, ModuleGroundExperiment, ModuleAsteroidDrill, ModuleCometDrill, ModuleCargoPart, ModuleResourceScanner, CommNet.ModuleRelayEnabler, ModuleKerbNetAccess, ModuleAeroSurface, ModuleOrbitalSurveyor, ModuleEnviroSensor, ModuleDeployableSolarPanel, ModuleSAS, ModuleGroundExpControl, ModuleGenerator, ModuleResourceIntake, ModuleGroundCommsPart, ModuleAnchoredDecoupler, CommNet.ModuleProbeControlPoint, ModuleAlternator, CompoundParts.CModuleStrut, ModuleResourceConverter, CompoundParts.CModuleFuelLine, ModuleResourceHarvester, and ModuleExperienceManagement.
|
inlinevirtual |
Override this to provide a Localized version of the PartModules Name for UI components
Reimplemented in PartStatsUpgradeModule, ModuleProceduralFairing, ModuleDockingNode, ModuleEngines, Expansions.Serenity.ModuleRobotArmScanner, Expansions.Serenity.ModuleRoboticController, ModuleInventoryPart, ModuleDeployablePart, ModuleLight, ModuleScienceExperiment, ModuleControlSurface, ModuleGrappleNode, ModuleCargoBay, ModuleParachute, ModuleWheelBase, ModuleRCS, ModuleWheels.ModuleWheelDeployment, ModuleDataTransmitter, BaseConverter, ModuleCommand, ModuleGroundSciencePart, ModuleCoreHeat, ModuleScienceContainer, FlagDecalBackground, ModulePartVariants, ModuleScienceLab, ModuleColorChanger, ModuleCargoPart, ModuleActiveRadiator, ModuleGroundPart, ModuleServiceModule, ModuleResourceHarvester, ModuleLiftingSurface, ModuleGimbal, Expansions.Serenity.ModuleRoboticServoHinge, Expansions.Serenity.ModuleRoboticRotationServo, ModuleWheels.ModuleWheelMotor, ModuleGroundExpControl, ModuleAnimationSetter, ModuleDeployableSolarPanel, ModuleReactionWheel, ModuleAblator, ModuleResourceIntake, ModuleAeroSurface, ModuleAsteroidDrill, ModuleCometDrill, Expansions.Serenity.ModuleRoboticServoPiston, ModuleGenerator, Expansions.Serenity.ModuleRoboticServoRotor, ModuleGroundExperiment, ModuleDecouple, ModuleTripLogger, ModuleSAS, ModuleResourceScanner, ModuleAlternator, FlagDecal, ModuleOrbitalSurveyor, ModuleWheels.ModuleWheelBrakes, ModuleKerbNetAccess, ModuleTestSubject, ModuleToggleCrossfeed, ModuleEnviroSensor, ModuleResourceConverter, ModuleGPS, ModuleGroundCommsPart, ModuleAnchoredDecoupler, CommNet.ModuleProbeControlPoint, CompoundParts.CModuleStrut, ModuleExperienceManagement, CompoundParts.CModuleFuelLine, ModuleDeployableAntenna, ModuleRCSFX, ModuleDeployableRadiator, and BaseDrill.
|
inline |
Get the modules persistentID, and create one if it doesnt already have one
|
inline |
Get the modules persistentID, and create one if it doesnt already have one
|
inlinestatic |
|
inlinevirtual |
Reimplemented in ModuleDockingNode, ModuleScienceExperiment, ModuleRCS, ModuleJettison, and ModuleDecouplerBase.
|
inlinevirtual |
Reimplemented in ModuleDockingNode, ModuleScienceExperiment, ModuleRCS, ModuleJettison, and ModuleDecouplerBase.
|
inlineprotected |
|
inlinevirtual |
Called by Upgrade Stats dialog
|
inline |
Returns true if upgrades exist for the partmodule
|
inlinevirtual |
Should this module be counted when seeing whether to have a stack icon present? Override in a module for custom behavior; otherwise returns true if the module (or something the module inherits from above PartModule itself) overrides OnActive()
Reimplemented in ModuleEngines, ModuleDockingNode, ModuleScienceExperiment, ModuleRCS, ModuleJettison, ModuleGimbal, ModuleDecouplerBase, ModuleEvaChute, and ModuleTestSubject.
|
inline |
Returns if, for example, an antenna part module qualifies as an antenna for contracts.
|
inline |
|
inlinevirtual |
Loads module-relevant upgrades from the partmodule confignode
node |
|
inlineprotectedvirtual |
Load the applied upgrade names
applieds | The list to load into. Usually upgradesApplied |
node |
|
inline |
Reset the modules persistentId to a new number
|
inlinevirtual |
Called when the part is set active (after unpacking etc)
Reimplemented in ModuleDockingNode, ModuleEngines, ModuleProceduralFairing, ModuleScienceExperiment, ModuleJettison, ModuleParachute, ModuleRCS, LaunchClamp, ModuleGimbal, ModuleEvaChute, ModuleServiceModule, ModuleOrbitalScanner, ModuleTestSubject, ModuleDecouplerBase, ModuleDecouple, and ModuleAnchoredDecoupler.
|
inlinevirtual |
Method fires once the module has been added to the part. Use for first time setup. Module will not have loaded fully by this point
Reimplemented in KerbalEVA, ModuleEngines, Expansions.Serenity.BaseServo, ModuleLight, ModuleDeployablePart, ModulePartVariants, Expansions.Serenity.ModuleRobotArmScanner, BaseConverter, ModuleDockingNode, ModuleCoreHeat, ModuleCommand, ModuleRCS, Expansions.Serenity.ModuleRoboticController, ModuleParachute, ModuleScienceExperiment, ModuleGroundSciencePart, MultiModeEngine, ModuleAnimationSetter, ModulePartFirework, ModuleAnimateGeneric, ModuleWheelBase, ModuleColorChanger, ModuleProceduralFairing, ModuleWheels.ModuleWheelSuspension, ModuleEnginesFX, ModuleActiveRadiator, ModuleControlSurface, CommNet.ModuleRelayEnabler, ModuleComet, ModuleDynamicNodes, ModuleResourceDrain, ModuleWheels.ModuleWheelSteering, PartModuleFXSetter, ModuleLiftingSurface, ModuleToggleCrossfeed, ModuleScienceLab, ModuleAblator, ModuleCargoBay, ModuleWheels.ModuleWheelMotor, ModuleDeployableSolarPanel, ModuleDataTransmitter, FlagDecalBackground, ModuleReactionWheel, ModuleResourceIntake, ModulePhysicMaterial, ModuleAsteroid, ModuleGroundExpControl, ModuleDecouplerBase, ModuleEnviroSensor, ModuleResourceScanner, ModuleKerbNetAccess, ModuleTestSubject, ModuleAlternator, ModuleAeroSurface, FlagDecal, ModuleRCSFX, ModuleDecouple, ModuleWheels.ModuleWheelSubmodule, ModuleConductionMultiplier, CompoundParts.CompoundPartModule, and ModuleTripLogger.
|
inlinevirtual |
Meant to be overwritten by part modules implementing color changes. In this case, it doesn't matter which color picker changed specifically.
color | Input Color |
Reimplemented in KerbalEVA, and ModuleLight.
|
inlinevirtual |
Meant to be overwritten by part modules implementing color changes
color | Input Color |
pickerID | Specific color picker ID |
Reimplemented in KerbalEVA, ModuleLight, and ModulePartFirework.
|
inlinevirtual |
This method will be called when in EVA Construction mode and this part and itself is disabled (when it is not attached to a vessel) every FixedUpdate().
Reimplemented in FXModuleLookAtConstraint.
|
inlinevirtual |
This method will be called when in EVA Construction mode and this part and itself is disabled (when it is not attached to a vessel) every Update().
Reimplemented in FXModuleLookAtConstraint.
|
inlinevirtual |
Use OnCopy to copy any additional data from the PartModule provided
fromModule |
Reimplemented in ModuleInventoryPart, Expansions.Serenity.BaseServo, Expansions.Serenity.ModuleRoboticServoHinge, and Expansions.Serenity.ModuleRoboticRotationServo.
|
inlinevirtual |
Called every physics/fixed frame that the part is active
Reimplemented in Expansions.Serenity.ModuleRoboticRotationServo, Expansions.Serenity.ModuleRoboticServoHinge, Expansions.Serenity.BaseServo, Expansions.Serenity.ModuleRoboticServoRotor, ModuleComet, and Expansions.Serenity.ModuleRoboticServoPiston.
|
inlinevirtual |
Method fires just before components are stripped from the gameobject to make it an icon. (The part is instantiated and then various components like Part, PartModule, EffectBehaviour, Colliders, Particles, etc are stripped and then it's set as the icon prefab. This lets PartModules do stuff to the model right before that happens.
|
inlinevirtual |
Called before the part goes inactive (after packing etc)
Reimplemented in KerbalEVA.
|
inlinevirtual |
Called on all modules after all parts are loaded but before they give the ship to the game
Reimplemented in ModuleDockingNode, ModuleCargoPart, and LaunchClamp.
|
inlinevirtual |
This method will be called when this modules part and itself is first disabled (when it is not attached to a vessel) when created in Inventory/Construction mode.
Reimplemented in ModuleEngines, ModuleWheelBase, ModuleLight, ModuleDockingNode, ModuleDeployablePart, Expansions.Serenity.ModuleRobotArmScanner, ModuleScienceExperiment, Expansions.Serenity.ModuleRoboticServoHinge, ModuleDeployableSolarPanel, ModuleAnimateGeneric, RetractableLadder, ModuleJettison, ModuleWheels.ModuleWheelDeployment, ModuleWheels.ModuleWheelSuspension, ModuleAnimationGroup, ModuleWheels.ModuleWheelDamage, FlagDecalBackground, FXModuleAnimateThrottle, ModuleAeroSurface, ModuleStatusLight, ModuleDeployableAntenna, and ModuleDeployableRadiator.
|
inlinevirtual |
This method will be called when this modules part and itself is first enabled (when it is attached to a vessel) when created in Inventory/Construction mode.
Reimplemented in ModuleWheelBase, ModuleDockingNode, Expansions.Serenity.ModuleRobotArmScanner, ModuleScienceExperiment, Expansions.Serenity.ModuleRoboticServoHinge, ModuleWheels.ModuleWheelSuspension, ModuleWheels.ModuleWheelDamage, ModuleAeroSurface, and KerbalSeat.
|
inlinevirtual |
Use OnLoad to load any additional data from the ConfigNode provided
node |
Reimplemented in PartStatsUpgradeModule, Expansions.Serenity.ModuleRoboticController, ModuleProceduralFairing, ModuleInventoryPart, ModuleLight, ModuleResourceDrain, Expansions.Serenity.BaseServo, KerbalEVA, ModuleDeployablePart, FlagDecalBackground, ModuleEngines, ModuleCoreHeat, ModulePartVariants, ModuleGroundSciencePart, ModuleDockingNode, ModuleCommand, Expansions.Serenity.ModuleRobotArmScanner, ModuleRCS, BaseConverter, ModulePartFirework, ModuleAnimationGroup, ModuleParachute, ModuleScienceExperiment, ModulePhysicMaterial, MultiModeEngine, ModuleGimbal, ModuleJettison, ModuleColorChanger, ModuleDeployableSolarPanel, ModuleDynamicNodes, ModuleWheels.ModuleWheelSteering, ModuleComet, ModuleScienceLab, ModuleGroundExperiment, FXModuleAnimateRCS, ModuleCargoPart, FXModuleLookAtConstraint, ModuleToggleCrossfeed, ModuleResourceIntake, KerbalSeat, FXModuleConstrainPosition, ModuleWheels.ModuleWheelDeployment, ModuleReactionWheel, ModuleDataTransmitter, ModuleGrappleNode, ModuleEnviroSensor, FlagSite, ModuleTestSubject, ModuleKerbNetAccess, ModuleAlternator, ModuleAsteroid, ModuleScienceContainer, LaunchClamp, ModuleAnimateHeat, ModuleJointMotor, ModuleSpaceObjectResource, ModuleTripLogger, ModuleDeployableRadiator, ModuleDeployableAntenna, and ModuleJointPivot.
|
inlineprotectedvirtual |
Perform processing specific to this part module when an adjuster is added. By default this does nothing is up to each part module to implement it properly.
adjuster | Adjuster which will be applied to part module. |
Reimplemented in ModuleEngines, ModuleDockingNode, ModuleDeployablePart, ModuleLight, ModuleControlSurface, ModuleGrappleNode, ModuleRCS, ModuleCargoBay, ModuleDataTransmitter, ModuleGimbal, ModuleActiveRadiator, ModuleLiftingSurface, ModuleDeployableSolarPanel, ModuleWheels.ModuleWheelMotor, ModuleReactionWheel, ModuleDecouplerBase, ModuleGenerator, ModuleSAS, ModuleAlternator, ModuleWheels.ModuleWheelBrakes, and CommNet.ModuleProbeControlPoint.
|
inline |
Wrapper to check the mission expansion availability before performing processing specific to this part module when an adjuster is added.
adjuster | Adjuster which will be applied to part module. |
|
inlinevirtual |
Perform processing specific to this part module when an adjuster is removed. By default this does nothing is up to each part module to implement it properly.
adjuster | Adjuster which is being removed from part module. |
Reimplemented in ModuleEngines, ModuleDockingNode, ModuleDeployablePart, ModuleLight, ModuleControlSurface, ModuleGrappleNode, ModuleRCS, ModuleCargoBay, ModuleDataTransmitter, ModuleGimbal, ModuleActiveRadiator, ModuleLiftingSurface, ModuleDeployableSolarPanel, ModuleWheels.ModuleWheelMotor, ModuleReactionWheel, ModuleDecouplerBase, ModuleGenerator, ModuleSAS, ModuleAlternator, ModuleWheels.ModuleWheelBrakes, and CommNet.ModuleProbeControlPoint.
|
inlinevirtual |
This method is called when a part is being taken out from a slot while being in EVAConstruction mode.
moduleInventoryPart | The inventory part module this part is being drawn from. |
Reimplemented in RetractableLadder.
|
inlinevirtual |
Use OnSave to serialize additional module information into the ConfigNode provided
node |
Reimplemented in Expansions.Serenity.ModuleRoboticController, ModuleProceduralFairing, ModuleInventoryPart, KerbalEVA, ModuleResourceDrain, Expansions.Serenity.BaseServo, ModuleDeployablePart, ModuleAnimateGeneric, FlagDecalBackground, ModulePartVariants, ModuleCoreHeat, BaseConverter, ModuleDockingNode, Expansions.Serenity.ModuleRobotArmScanner, ModuleCommand, ModuleScienceExperiment, ModulePartFirework, ModulePhysicMaterial, CommNet.ModuleRelayEnabler, ModuleScienceLab, ModuleWheels.ModuleWheelSteering, ModuleDataTransmitter, ModuleComet, KerbalSeat, ModuleGrappleNode, ModuleGroundExpControl, ModuleWheels.ModuleWheelDeployment, FXModuleAnimateRCS, ModuleReactionWheel, FlagSite, ModuleScienceContainer, ModuleAsteroid, LaunchClamp, ModuleTripLogger, ModuleJointMotor, and ModuleJointPivot.
|
inlinevirtual |
Called when the part starts. The StartState gives an indication of where in flight you are. All values may not be plugged in!
state |
Reimplemented in ModulePartVariants, BaseConverter, ModuleCommand, Expansions.Serenity.ModuleRoboticController, ModulePartFirework, ModuleColorChanger, ModuleAnimationSetter, ModuleAsteroidDrill, ModuleCometDrill, ModuleWheels.ModuleWheelSuspension, CommNet.ModuleRelayEnabler, ModuleHeatEffects, ModuleResourceDrain, ModuleResourceHarvester, ModuleKerbNetAccess, PartModuleFXSetter, ModuleDeployableSolarPanel, FlagDecalBackground, ModuleResourceAutoShiftState, ModuleReactionWheel, ModuleServiceModule, ModuleResourceIntake, ModuleDynamicNodes, ModuleFlightDisplay, ModuleResourceScanner, ModuleScienceConverter, ModuleAnimateHeat, ModuleFuelJettison, ModuleEffectTest, ModuleStructuralNode, ModuleAnimatorLandingGear, ModuleOverheatDisplay, ModuleExperienceManagement, AxisTestModule, ModuleAsteroidInfo, ModuleCometInfo, ModuleAnalysisResource, ModuleAsteroidAnalysis, and ModuleCometAnalysis.
|
inlinevirtual |
Called in flight scene in Part.Start just before the Part attachnode joints are created.
state |
Reimplemented in Expansions.Serenity.BaseServo.
|
inlinevirtual |
Called when the part finishes starting. The StartState gives an indication of where in flight you are. All values may not be plugged in!
state |
Reimplemented in KerbalEVA, ModuleDockingNode, ModuleResourceDrain, ModuleCargoBay, KerbalSeat, ModuleDynamicNodes, CompoundParts.CModuleStrut, and CompoundParts.CModuleFuelLine.
|
inlinevirtual |
Called when the part is stored in an inventory.
moduleInventoryPart |
Reimplemented in ModuleDeployablePart, ModuleAnimateGeneric, ModuleWheels.ModuleWheelDeployment, RetractableLadder, ModuleAnimationGroup, and ModuleAeroSurface.
|
inlinevirtual |
Called every frame that the part is active
Reimplemented in ModuleInventoryPart, Expansions.Serenity.ModuleRobotArmScanner, Expansions.Serenity.ModuleRoboticController, ModuleCargoPart, MultiModeEngine, ModuleGroundSciencePart, ModuleComet, ModuleGroundPart, ModuleRotatingJoint, Expansions.Serenity.ModuleRoboticServoRotor, ModuleAsteroidDrill, ModuleCometDrill, ModuleGroundExpControl, and ModuleOverheatDisplay.
|
inlinevirtual |
Called when the PartModule was copied, through Alt+Copy or symmetry
copyPartModule | Is the equivalent PartModule in the new copy - May be null if by some chance it didn't get copied. |
asSymCounterpart | True if copied as part of a symmetry group. |
|
inlinevirtual |
Called when the PartModule is about to be copied, through Alt+Copy or symmetry
asSymCounterpart | True if copied as part of a symmetry group. |
|
inlinevirtual |
This is called in the Editor scene when a symmetry copy of a part is being positioned. Only called on the symmetry parts and only when symmetry mode is set to Mirror. It allows the mirror rotation to be changed and returned before being applied to the symmetry copy part.
rotation | The current calculated rotation. Will be updated if method returns true. |
selPartNode | The attachnode. |
partParent | The part that will become this part's parent. |
Reimplemented in ModuleMirrorPlacement.
|
inlinevirtual |
Preset colors received for any part module. By default, returns only black, override to make your own selection.
Reimplemented in KerbalEVA, ModuleLight, and ModulePartFirework.
|
inlinevirtual |
|
inlinevirtual |
This method will be called from Part class PromoteToPhysicalPart when the part is being converted from physicsless to physical part.
Reimplemented in Expansions.Serenity.BaseServo, ModuleWheelBase, and ModuleDockingNode.
|
inline |
Call this to remove an adjuster from this part module.
oldAdjuster | Adjuster to be removed from part module. |
|
inline |
Removes the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too.
moduleAdjusters | List of module adjusters to remove |
|
inline |
|
inlineprotectedvirtual |
Save the applied upgrades.
node |
|
inlinevirtual |
Run by the part's staging toggle handler, sets staging on modules on symmetry counterparts.
newValue |
|
inline |
Set the staging enabled bool for this module.
|
inlinevirtual |
Gets current staging status (is staging enabled for this module) Override me!
Reimplemented in ModuleDockingNode, ModuleScienceExperiment, and ModuleDecouplerBase.
|
inlinevirtual |
Reimplemented in ModuleDockingNode, ModuleScienceExperiment, and ModuleDecouplerBase.
|
inlinevirtual |
Reimplemented in ModuleDockingNode, ModuleScienceExperiment, and ModuleDecouplerBase.
|
inline |
|
inlinevirtual |
Updates the staging toggle
|
inlinestatic |
Returns true if at least one module on the part has at least one upgrade available (isUnlocked)
part | Part to get stats for |
|
inlinestatic |
Returns true if at least one module on the part has at least one upgrade available (isUnlocked)
part | Part to get stats for |
node | Upgrades node to use - if null then use existing loaded config |
|
inlineprotected |
delegate void PartModule.voidPMApplyNodeDelegate | ( | PartModule | pm, |
List< string > | appliedUps, | ||
ConfigNode | node, | ||
bool | doLoad | ||
) |
delegate void PartModule.voidPMDelegate | ( | PartModule | pm | ) |
delegate void PartModule.voidPMNodeDelegate | ( | PartModule | pm, |
ConfigNode | node | ||
) |
|
static |
|
static |
|
static |
|
staticprotected |
|
static |
bool PartModule.isEnabled = true |
|
static |
Hook for loading extra nodes common to all part modules.
|
static |
bool PartModule.moduleIsEnabled = true |
string PartModule.moduleName |
bool PartModule.overrideStagingIconIfBlank = true |
|
staticprotected |
ModuleResourceHandler PartModule.resHandler = new ModuleResourceHandler() |
|
static |
Hook for saving extra nodes common to all part modules.
|
static |
Hook for performing extra setup common to all part modules.
bool PartModule.showUpgradesInModuleInfo = false |
ProtoPartModuleSnapshot PartModule.snapshot |
string PartModule.stagingDisableText = "" |
bool PartModule.stagingEnabled = true |
string PartModule.stagingEnableText = "" |
bool PartModule.stagingToggleEnabledEditor = false |
bool PartModule.stagingToggleEnabledFlight = false |
List<ConfigNode> PartModule.upgrades |
List<string> PartModule.upgradesApplied = new List<string>() |
bool PartModule.upgradesApply = true |
bool PartModule.upgradesAsk = true |
|
static |
|
static |
|
get |
|
get |
|
get |
|
get |
List of all the module adjusters that are currently active on this part module.
|
get |
|
get |
|
get |
|
get |
Has this part module been adjusted?
|
getset |
|
getset |
|
getset |
A unique identifier for each vessel including from when it was Shipconstruct
|
get |
A unique identifier for each vessel including from when it was Shipconstruct
|
get |