Table of Contents

Class CommandParser

Namespace
Uncreated.Warfare.Interaction.Commands
Assembly
Uncreated.Warfare.dll
public class CommandParser
Inheritance
CommandParser
Inherited Members

Constructors

CommandParser(CommandDispatcher)

public CommandParser(CommandDispatcher dispatcher)

Parameters

dispatcher CommandDispatcher

Properties

Dispatcher

public CommandDispatcher Dispatcher { get; }

Property Value

CommandDispatcher

Methods

ParseCommandInput(ReadOnlySpan<char>, bool)

public ParsedCommandInfo ParseCommandInput(ReadOnlySpan<char> originalMessage, bool requirePrefix)

Parameters

originalMessage ReadOnlySpan<char>
requirePrefix bool

Returns

ParsedCommandInfo