PersistentCustomFieldAttribute Constructor |
Creates attribute for persistent field with custom type protos.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic PersistentCustomFieldAttribute(
string cfgPath,
Type typeProto = null,
Type collectionProto = null
)
Request Example
View SourceParameters
- 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