Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class RegexCommandInitializer

    An initializer that creates a command instance from a descriptor.

    Inheritance
    System.Object
    RegexCommandInitializer
    Implements
    ICommandInitializer
    Namespace: TehGM.Wolfringo.Commands.Initialization
    Assembly: Wolfringo.Commands.dll
    Syntax
    public class RegexCommandInitializer : 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 Source

    InitializeCommand(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.

    Implements

    ICommandInitializer