Namespace Shard.Modding.SDK.Command
Classes
- AsyncCommandBase
Asynchronous command variant for command work that remains pending after dispatch starts it.
- 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.
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.