Class WordRangeArgParser
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class WordRangeArgParser : ArgumentParserBase, ICommandArgumentParser
- Inheritance
-
WordRangeArgParser
- Implements
- Inherited Members
- Extension Methods
Constructors
WordRangeArgParser(string, bool, params string[])
public WordRangeArgParser(string argName, bool isMandatoryArg, params string[] words)
Parameters
Fields
word
protected string word
Field Value
Methods
GetSyntax()
public override string GetSyntax()
Returns
GetSyntaxExplanation(string)
public override string GetSyntaxExplanation(string indent)
Parameters
indent
string
Returns
GetSyntaxUnformatted()
public override string GetSyntaxUnformatted()
Returns
GetValidRange(CmdArgs)
public override string[] GetValidRange(CmdArgs args)
Parameters
args
CmdArgs
Returns
- string[]
GetValue()
public override object GetValue()
Returns
PreProcess(TextCommandCallingArgs)
public override void PreProcess(TextCommandCallingArgs args)
Parameters
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
TextCommandCallingArgsonReady
Action<AsyncParseResults>Only needs to be called when returning Deferred as parseresult