Struct ParsedCommandInfo
- Namespace
- Uncreated.Warfare.Interaction.Commands
- Assembly
- Uncreated.Warfare.dll
Output data for ICommandParser implementations.
public readonly struct ParsedCommandInfo
- Inherited Members
Constructors
ParsedCommandInfo(string?, string[], CommandFlagInfo[])
Output data for ICommandParser implementations.
public ParsedCommandInfo(string? commandName, string[] arguments, CommandFlagInfo[] flags)
Parameters
commandNamestringargumentsstring[]flagsCommandFlagInfo[]
Fields
Arguments
List of all arguments entered by the user.
public readonly string[] Arguments
Field Value
- string[]
CommandName
The first 'word' in the command string.
public readonly string? CommandName
Field Value
Flags
List of all flags entered by the user.
public readonly CommandFlagInfo[] Flags
Field Value
Methods
ToString()
Format a round-trip string that could be used later to accurately re-parse the command.
public override string ToString()