Interface ICommandArgumentParser
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public interface ICommandArgumentParser
- Extension Methods
Properties
ArgCount
Return -1 to ignore arg count checking
int ArgCount { get; }
Property Value
ArgumentName
string ArgumentName { get; }
Property Value
IsMandatoryArg
bool IsMandatoryArg { get; }
Property Value
IsMissing
bool IsMissing { get; set; }
Property Value
LastErrorMessage
string LastErrorMessage { get; }
Property Value
Methods
GetSyntax()
string GetSyntax()
Returns
GetSyntaxExplanation(string)
string GetSyntaxExplanation(string indent)
Parameters
indent
string
Returns
GetValidRange(CmdArgs)
string[] GetValidRange(CmdArgs args)
Parameters
args
CmdArgs
Returns
- string[]
GetValue()
object GetValue()
Returns
PreProcess(TextCommandCallingArgs)
void PreProcess(TextCommandCallingArgs args)
Parameters
SetValue(object)
Used by the async system
void SetValue(object data)
Parameters
data
object
TryProcess(TextCommandCallingArgs, Action<AsyncParseResults>)
Parse the args.
EnumParseResult TryProcess(TextCommandCallingArgs args, Action<AsyncParseResults> onReady = null)
Parameters
args
TextCommandCallingArgsonReady
Action<AsyncParseResults>Only needs to be called when returning Deferred as parseresult