ConfigAccessorReadFieldsFromDatabase Method |
Reads values of the annotated persistent fields from a config file.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic static void ReadFieldsFromDatabase(
string nodePath,
Type type,
Object instance,
string group = ""
)
Request Example
View SourceParameters
- 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