Class MapperTypeDefinition
Base class for mapper type XML definitions.
Inheritance
MapperTypeDefinition
Implements
Inherited Members
Namespace: Modding.Serialization
Assembly: Assembly-CSharp.dll
Syntax
public abstract class MapperTypeDefinition : Element, IValidatable
Constructors
MapperTypeDefinition()
Declaration
protected MapperTypeDefinition()
Fields
DisplayName
Name of this mapper type to display in the UI.
Declaration
public string DisplayName
Field Value
Type | Description |
---|---|
String |
Key
Used as key in the save data as well as identifying this mapper type in references.
Declaration
public string Key
Field Value
Type | Description |
---|---|
String |
ShowInMapper
Whether to show this mapper type in the UI. Optional, defaults to true.
Declaration
public bool ShowInMapper
Field Value
Type | Description |
---|---|
Boolean |
Methods
Create(SaveableDataHolder)
Adds this mapper type to the given holder.
Declaration
public abstract MapperType Create(SaveableDataHolder holder)
Parameters
Type | Name | Description |
---|---|---|
SaveableDataHolder | holder |
Returns
Type | Description |
---|---|
MapperType | The created MapperType instance. |