Click or drag to resize

PersistentCustomFieldAttribute Constructor

Creates attribute for persistent field with custom type protos.

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.1.2 (in KSPDev_Utils.1.2.dll) Version: 1.2 for KSP v1.6+
Syntax
C#
public PersistentCustomFieldAttribute(
	string cfgPath,
	Type typeProto = null,
	Type collectionProto = null
)
Request Example View Source

Parameters

cfgPath
Type: SystemString
The path to the fields's value in the config.
typeProto (Optional)
Type: SystemType
The custom ordinary type proto. If not set, then StandardOrdinaryTypesProto is used.
collectionProto (Optional)
Type: SystemType
The custom collection type proto. Only set if the attribute is used to annotate a collection.
See Also