Class StandardCommandInitializer
An initializer that creates a command instance from a descriptor.
Implements
Namespace: TehGM.Wolfringo.Commands.Initialization
Assembly: Wolfringo.Commands.dll
Syntax
public class StandardCommandInitializer : ICommandInitializer
Remarks
This is a default initializer designed to load RegexCommandInstance from RegexCommandAttribute. It will not work with other command types.
Methods
| Improve this Doc View SourceInitializeCommand(ICommandInstanceDescriptor, CommandsOptions)
Initializes a command instance.
Declaration
public ICommandInstance InitializeCommand(ICommandInstanceDescriptor descriptor, CommandsOptions options)
Parameters
Type | Name | Description |
---|---|---|
ICommandInstanceDescriptor | descriptor | Descriptor of the command. |
CommandsOptions | options | Default options to initialize the instance with. |
Returns
Type | Description |
---|---|
ICommandInstance | A new command instance. |