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

Represents the saved state of a part module More...

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...
 
List< T > GetListOfActiveAdjusters< T > ()
 Get a list of the active adjusters. We load all the applied adjusters, then remove those those will be removed on load. More...
 
PartModule Load (Part hostPart, ref int moduleIndex)
 
void ProtoPartModuleRepair ()
 Call this to repair all the adjusters on this part module that can be repaired. More...
 
 ProtoPartModuleSnapshot (PartModule module)
 
 ProtoPartModuleSnapshot (ConfigNode node)
 
void RemovePartModuleAdjuster (AdjusterPartModuleBase removeAdjuster)
 Call this to remove an adjuster from this part module. More...
 
void RemovePartModuleAdjuster (Guid removeAdjusterID)
 Checks to see if the adjuster is applied this part module, and removes it if it is. 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)
 

Public Attributes

string moduleName
 
PartModule moduleRef
 
ConfigNode moduleValues
 

Detailed Description

Represents the saved state of a part module

Constructor & Destructor Documentation

ProtoPartModuleSnapshot.ProtoPartModuleSnapshot ( PartModule  module)
inline
ProtoPartModuleSnapshot.ProtoPartModuleSnapshot ( ConfigNode  node)
inline

Member Function Documentation

void ProtoPartModuleSnapshot.AddPartModuleAdjuster ( AdjusterPartModuleBase  newAdjuster)
inline

Call this to add an adjuster to this part module.

Template Parameters
newAdjusterAdjuster to add.
void ProtoPartModuleSnapshot.AddPartModuleAdjusterList ( List< AdjusterPartModuleBase moduleAdjusters)
inline

Applies the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too.

Template Parameters
moduleAdjustersList of module adjusters to apply
List<T> ProtoPartModuleSnapshot.GetListOfActiveAdjusters< T > ( )
inline

Get a list of the active adjusters. We load all the applied adjusters, then remove those those will be removed on load.

Returns
List of the active adjusters.
Type Constraints
T :class 
PartModule ProtoPartModuleSnapshot.Load ( Part  hostPart,
ref int  moduleIndex 
)
inline
void ProtoPartModuleSnapshot.ProtoPartModuleRepair ( )
inline

Call this to repair all the adjusters on this part module that can be repaired.

void ProtoPartModuleSnapshot.RemovePartModuleAdjuster ( AdjusterPartModuleBase  removeAdjuster)
inline

Call this to remove an adjuster from this part module.

Template Parameters
removeAdjusterAdjuster to remove.
void ProtoPartModuleSnapshot.RemovePartModuleAdjuster ( Guid  removeAdjusterID)
inline

Checks to see if the adjuster is applied this part module, and removes it if it is.

Template Parameters
removeAdjusterAdjuster to remove.
void ProtoPartModuleSnapshot.RemovePartModuleAdjusterList ( List< AdjusterPartModuleBase moduleAdjusters)
inline

Removes the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too.

Template Parameters
moduleAdjustersList of module adjusters to remove
void ProtoPartModuleSnapshot.Save ( ConfigNode  node)
inline

Member Data Documentation

string ProtoPartModuleSnapshot.moduleName
PartModule ProtoPartModuleSnapshot.moduleRef
ConfigNode ProtoPartModuleSnapshot.moduleValues

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