Table of Contents

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

NoOpPluginCommandRegistry

Methods

Register(string, Action<PluginCommand>)

Claims one command word.

public IDisposable Register(string verb, Action<PluginCommand> handler)

Parameters

verb string

The command word, without a leading slash.

handler Action<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.