Click or drag to resize

AbstractPartModule Class

Base class for the KSP modules.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          (Default Namespace)PartModule
            KSPDev.PartUtilsAbstractPartModule

Namespace:  KSPDev.PartUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public abstract class AbstractPartModule : PartModule, 
	IsLocalizableModule, IHasDebugAdjustables, IPartModule, IsDestroyable
Request Example View Source

The AbstractPartModule type exposes the following members.

Constructors
  NameDescription
Protected methodAbstractPartModule
Initializes a new instance of the AbstractPartModule class
Top
Methods
  NameDescription
Protected methodCheckSettingsConsistency
Verifies that all part's settings are consistent.
Protected methodInitModuleSettings
Initializes the module state according to the settings.
Public methodCode exampleLocalizeModule
A callback which is called when the localization vesion has changed.
Public methodOnAwake
Initializes a new instance of the module on the part.
(Overrides PartModuleOnAwake.)
Public methodOnBeforeDebugAdjustablesUpdate
Notifies that one or more of the debug adjustable fields is about to be updated.
Public methodOnDebugAdjustablesUpdated
Notifies that one or more of the debug adjustable fields have changed.
Public methodOnDestroy
Triggers when Unity object is about to destroy.
Protected methodOnEvaPartLoaded
Notifies the part is being created from the stock EVA construction mode.
Public methodOnLoad
Notifies that the part's config is loaded.
(Overrides PartModuleOnLoad(ConfigNode).)
Public methodOnSave
Notifies about saving module state.
(Overrides PartModuleOnSave(ConfigNode).)
Public methodOnStart
Initializes module's state after all other modules have been created.
(Overrides PartModuleOnStart(PartModuleStartState).)
Protected methodRegisterGameEventListenerT(EventDataT, EventDataTOnEvent)
Registers a game event listener and cleans it up on module destruction.
Protected methodRegisterGameEventListenerT, K(EventDataT, K, EventDataT, KOnEvent)
Registers a game event listener and cleans it up on module destruction.
Protected methodShowStatusMessage
Shows a UI messages with regard to the currently active vessel.
Top
Remarks
This module implements common logic to deal with part's configuration, persistence and localization.

The descendants of this module can use the custom persistent fields of groups:

See Also