Show / Hide Table of Contents

Class MToggleDefinition

Used to define an MToggle in an XML file.

Inheritance
Object
Element
MapperTypeDefinition
MToggleDefinition
Implements
IValidatable
Inherited Members
MapperTypeDefinition.Key
MapperTypeDefinition.DisplayName
MapperTypeDefinition.ShowInMapper
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 class MToggleDefinition : MapperTypeDefinition, IValidatable

Constructors

MToggleDefinition()

Declaration
public MToggleDefinition()

Fields

Default

Default state of the toggle.

Declaration
public bool Default
Field Value
Type Description
Boolean

Methods

Create(SaveableDataHolder)

Adds this mapper type to the given holder.

Declaration
public override MapperType Create(SaveableDataHolder holder)
Parameters
Type Name Description
SaveableDataHolder holder
Returns
Type Description
MapperType

The created MapperType instance.

Overrides
MapperTypeDefinition.Create(SaveableDataHolder)

Implements

IValidatable
Back to top Generated by DocFX