Click or drag to resize

PersistentCustomFieldAttribute Constructor

Creates attribute for persistent field with custom type protos.

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
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