Click or drag to resize

PersistentFieldsFileAttribute Constructor

Constructor for a persistent field.

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public PersistentFieldsFileAttribute(
	string configFilePath,
	string nodePath,
	string group = ""
)
Request Example View Source

Parameters

configFilePath
Type: SystemString
A relative or an absolute path to the file. It's resolved via MakeAbsPathForGameData(String). If empty then data is read from database.
nodePath
Type: SystemString
A root for the persistent fields when saving or loading via this annotation. If empty then root node of the file is used. Cannot be null
group (Optional)
Type: SystemString
A group of the annotation. When saving or loading persistent fields only the fields of this group will be considered. Must not be null.
See Also