Class MToggleDefinition
Used to define an MToggle in an XML file.
Implements
Inherited Members
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. |