Click or drag to resize

AbstractPartModuleOnSave Method

Notifies about saving module state.

Namespace:  KSPDev.PartUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public override void OnSave(
	ConfigNode node
)
Request Example View Source

Parameters

node
Type: (Default Namespace)ConfigNode
Config node to save data into.

Implements

IPartModuleOnSave(ConfigNode)
Remarks
This isn't required to be saving into a real file. This method is a generic way to save module state when it's needed. Note, that saving null is usually a problem for KSP, so always give default non-null values to every persisted field.

Persistent fields annotated woth KSPField are saved before this callback is called. Only save values that need special handling.

See Also