Click or drag to resize

ConfigAccessorReadFieldsFromDatabase Method

Reads values of the annotated persistent fields from a config file.

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 ReadFieldsFromDatabase(
	string nodePath,
	Type type,
	Object instance,
	string group = ""
)
Request Example View Source

Parameters

nodePath
Type: SystemString
An absolute path in the database. No leading "/".
type
Type: SystemType
A type to load fields for.
instance
Type: SystemObject
An instance of type type. If it's null then only static fields will be loaded.
group (Optional)
Type: SystemString
A group tag (see BasePersistentFieldAttribute).
See Also