Class UnparsedArg
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class UnparsedArg : ArgumentParserBase, ICommandArgumentParser
- Inheritance
-
UnparsedArg
- Implements
- Inherited Members
- Extension Methods
Constructors
UnparsedArg(string, params string[])
public UnparsedArg(string argName, params string[] validRange)
Parameters
Methods
GetValidRange(CmdArgs)
public override string[] GetValidRange(CmdArgs args)
Parameters
args
CmdArgs
Returns
- string[]
GetValue()
public override object GetValue()
Returns
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