Click or drag to resize

ConfigAccessorWriteFieldsIntoNode Method

Writes values of the annotated persistent fields into a config node.

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public static void WriteFieldsIntoNode(
	ConfigNode node,
	Type type,
	Object instance,
	string group = ""
)
Request Example View Source

Parameters

node
Type: (Default Namespace)ConfigNode
A config node to write data into.
type
Type: SystemType
A type to write fields for.
instance
Type: SystemObject
An instance of type type. If it's null then only static fields will be written.
group (Optional)
Type: SystemString
A group tag (see BasePersistentFieldAttribute).
Remarks
All persitent values are added into the node provided. I.e. if node had already had a value being persited then it either overwritten (ordinary fields) or extended (collection fields).
See Also