Interface IPluginCommandDefinition
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Describes a command, its aliases, invocation, and completion behavior.
public interface IPluginCommandDefinition
Properties
Aliases
Other words the same command answers to; empty for none.
IReadOnlyList<string> Aliases { get; }
Property Value
Description
One line saying what the command does, used for help.
string Description { get; }
Property Value
Verb
The command word, without a leading slash.
string Verb { get; }
Property Value
Methods
Complete(PluginCommand)
Offers completions for a partially typed command.
IReadOnlyList<PluginCommandCompletion> Complete(PluginCommand command)
Parameters
commandPluginCommandWhat the player has typed so far.
Returns
- IReadOnlyList<PluginCommandCompletion>
The candidates, best first; empty for none.
Invoke(PluginCommand)
Carries the command out.
PluginCommandResult Invoke(PluginCommand command)
Parameters
commandPluginCommandWhat the player typed.
Returns
- PluginCommandResult
Whether it was carried out, and what to tell the player.