Show / Hide Table of Contents

Class MapperTypeDefinition

Base class for mapper type XML definitions.

Inheritance
Object
Element
MapperTypeDefinition
MColourSliderDefinition
MKeyDefinition
MSliderDefinition
MToggleDefinition
MValueDefinition
Implements
IValidatable
Inherited Members
Element.Validate()
Element.Validate(String)
Element.MissingElement(String, String)
Element.MissingAttribute(String, String)
Element.InvalidData(String, String)
Element.Warn(String, String)
Element.LineNumber
Element.LinePosition
Element.AttributesUsed
Element.ElementsUsed
Element.FileName
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.

Implements

IValidatable
Back to top Generated by DocFX