Class StringParser
Consumes ALL remaining input text (used for the last string parameter, e.g. chat messages).
public class StringParser : ICommandParameterParser
- Inheritance
-
StringParser
- Implements
- Inherited Members
Constructors
StringParser()
public StringParser()
Methods
TryParse(IServiceProvider, ref StringSpan, out object?)
Tries to parse the next token from inputText.
public bool TryParse(IServiceProvider services, ref StringSpan inputText, out object? result)
Parameters
servicesIServiceProviderService provider (used by parsers that need DI, e.g. PlayerParser).
inputTextStringSpanRemaining input text as a StringSpan. Consumed text is removed by advancing the span.
resultobjectParsed value on success.