Table of Contents

Class FloatArgParser

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class FloatArgParser : ArgumentParserBase, ICommandArgumentParser
Inheritance
FloatArgParser
Implements
Inherited Members
Extension Methods

Constructors

FloatArgParser(string, bool)

public FloatArgParser(string argName, bool isMandatoryArg)

Parameters

argName string
isMandatoryArg bool

FloatArgParser(string, float, bool)

public FloatArgParser(string argName, float defaultvalue, bool isMandatoryArg)

Parameters

argName string
defaultvalue float
isMandatoryArg bool

FloatArgParser(string, float, float, bool)

public FloatArgParser(string argName, float min, float max, bool isMandatoryArg)

Parameters

argName string
min float
max float
isMandatoryArg bool

Methods

GetSyntaxExplanation(string)

public override string GetSyntaxExplanation(string indent)

Parameters

indent string

Returns

string

GetValidRange(CmdArgs)

public override string[] GetValidRange(CmdArgs args)

Parameters

args CmdArgs

Returns

string[]

GetValue()

public override object GetValue()

Returns

object

PreProcess(TextCommandCallingArgs)

public override void PreProcess(TextCommandCallingArgs args)

Parameters

args TextCommandCallingArgs

SetValue(object)

Used by the async system

public override void SetValue(object data)

Parameters

data object

TryProcess(TextCommandCallingArgs, Action<AsyncParseResults>)

Parse the args.

public override EnumParseResult TryProcess(TextCommandCallingArgs args, Action<AsyncParseResults> onReady = null)

Parameters

args TextCommandCallingArgs
onReady Action<AsyncParseResults>

Only needs to be called when returning Deferred as parseresult

Returns

EnumParseResult