Click or drag to resize

IPartModuleOnSave Method

Notifies about saving module state.

Namespace:  KSPDev.KSPInterfaces
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
void OnSave(
	ConfigNode node
)
Request Example View Source

Parameters

node
Type: (Default Namespace)ConfigNode
Config node to save data into.
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