Table of Contents

Namespace Shard.Modding.SDK.Command

Classes

ArgTypes
AsyncCommandBase

Asynchronous command variant for command work that remains pending after dispatch starts it.

BooleanArgument
ColorAlphaArgument
ColorArgument
CommandArg
CommandArg<T>
CommandArgumentParser<T>
CommandBase

Synchronous command variant for immediate command work.

CommandCollection

Routes the next argument to a registered child command, /module enable Network.

CommandContext

Carries one command invocation; output stays explicit on Sender.

CommandDefinitionBase

Shared command metadata; child interfaces define execution semantics.

CommandDispatcher

Parses a raw command line and runs the matching command. Input must start with Prefix (default /); the prefix is stripped, the rest split on whitespace, the command looked up, its permission enforced against the sender, then executed. Sync command bodies run inline; async command bodies are awaited. Unknown commands, permission denials and execution errors are reported back through the sender.

CommandException

A user-facing command error (bad arguments, invalid target, …). The dispatcher reports the message to the sender instead of logging it as a crash, so commands can validate input by throwing one of these.

CommandUsageException
DefaultArg<T>
DoubleArgument
FlagArg
GameModeArgument
GuidArgument
Int32Argument
Int64Argument
OptionalArg<T>
PlayerUuidArgument
RequiredArg<T>
SingleArgument
StringArgument
TextArgument
TimeSpanArgument

Interfaces

IAsyncCommand

Command variant whose work remains pending after dispatch starts it.

ICommand

Command metadata shared by sync and async command variants.

ICommandCollection

Command category that routes to executable child commands.

ICommandSender

Something that can issue commands, receive output, and hold permissions.

ISyncCommand

Command variant whose work completes during dispatch.

Delegates

CommandExecutor