Class NoOpPluginCommandRegistry
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Inert command registry for hosts without a command line.
public sealed class NoOpPluginCommandRegistry : IPluginCommandRegistry
- Inheritance
-
NoOpPluginCommandRegistry
- Implements
- Inherited Members
Properties
Instance
The one shared instance.
public static NoOpPluginCommandRegistry Instance { get; }
Property Value
Methods
Register(string, Action<PluginCommand>)
Claims one command word.
public IDisposable Register(string verb, Action<PluginCommand> handler)
Parameters
verbstringThe command word, without a leading slash.
handlerAction<PluginCommand>Called each time the player types the command.
Returns
- IDisposable
Dispose it to give the word up.
Remarks
Checks its arguments and claims nothing; the handler is never called.