Table of Contents

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

commandName string
arguments string[]
flags CommandFlagInfo[]

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

string

Flags

List of all flags entered by the user.

public readonly CommandFlagInfo[] Flags

Field Value

CommandFlagInfo[]

Methods

ToString()

Format a round-trip string that could be used later to accurately re-parse the command.

public override string ToString()

Returns

string