Show / Hide Table of Contents

Class MValueDefinition

Used to define an MValue in an XML file.

Inheritance
Object
Element
MapperTypeDefinition
MValueDefinition
Implements
IValidatable
Inherited Members
MapperTypeDefinition.Key
MapperTypeDefinition.DisplayName
MapperTypeDefinition.ShowInMapper
Element.Validate()
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 MValueDefinition : MapperTypeDefinition, IValidatable

Constructors

MValueDefinition()

Declaration
public MValueDefinition()

Fields

Default

Default value.

Declaration
public float Default
Field Value
Type Description
Single

Max

Maximum value.

Declaration
public float Max
Field Value
Type Description
Single

MaxSpecified

Declaration
public bool MaxSpecified
Field Value
Type Description
Boolean

Min

Minimum value.

Declaration
public float Min
Field Value
Type Description
Single

MinSpecified

Declaration
public bool MinSpecified
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)

Validate(String)

Declaration
protected override bool Validate(string elementName)
Parameters
Type Name Description
String elementName
Returns
Type Description
Boolean
Overrides
Element.Validate(String)

Implements

IValidatable
Back to top Generated by DocFX