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

    Class CommandInstanceDescriptor

    Describes a command instance.

    Inheritance
    System.Object
    CommandInstanceDescriptor
    Implements
    ICommandInstanceDescriptor
    System.IEquatable<ICommandInstanceDescriptor>
    Namespace: TehGM.Wolfringo.Commands.Initialization
    Assembly: Wolfringo.Commands.dll
    Syntax
    public class CommandInstanceDescriptor : ICommandInstanceDescriptor, IEquatable<ICommandInstanceDescriptor>

    Constructors

    | Improve this Doc View Source

    CommandInstanceDescriptor(CommandAttributeBase, MethodInfo)

    Creates a command descriptor.

    Declaration
    public CommandInstanceDescriptor(CommandAttributeBase attribute, MethodInfo method)
    Parameters
    Type Name Description
    CommandAttributeBase attribute

    Command attribute that specifies this command.

    System.Reflection.MethodInfo method

    Method that will be run when the command executes.

    Properties

    | Improve this Doc View Source

    Attribute

    Command attribute that specifies this command.

    Declaration
    public CommandAttributeBase Attribute { get; }
    Property Value
    Type Description
    CommandAttributeBase
    | Improve this Doc View Source

    HandlerAttribute

    Command Handler Attribute present on the handler. Might be null if handler isn't tagged with that attribute.

    Declaration
    public CommandsHandlerAttribute HandlerAttribute { get; }
    Property Value
    Type Description
    CommandsHandlerAttribute
    | Improve this Doc View Source

    Method

    Declaration
    public MethodInfo Method { get; }
    Property Value
    Type Description
    System.Reflection.MethodInfo
    Remarks

    Method that will be run when the command executes.

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    Equals(ICommandInstanceDescriptor)

    Declaration
    public bool Equals(ICommandInstanceDescriptor other)
    Parameters
    Type Name Description
    ICommandInstanceDescriptor other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(CommandInstanceDescriptor, CommandInstanceDescriptor)

    Declaration
    public static bool operator ==(CommandInstanceDescriptor left, CommandInstanceDescriptor right)
    Parameters
    Type Name Description
    CommandInstanceDescriptor left
    CommandInstanceDescriptor right
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(CommandInstanceDescriptor, CommandInstanceDescriptor)

    Declaration
    public static bool operator !=(CommandInstanceDescriptor left, CommandInstanceDescriptor right)
    Parameters
    Type Name Description
    CommandInstanceDescriptor left
    CommandInstanceDescriptor right
    Returns
    Type Description
    System.Boolean

    Implements

    ICommandInstanceDescriptor
    System.IEquatable<T>

    Extension Methods

    CommandInstanceDescriptorExtensions.GetHandlerAttribute(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetPriority(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetHelpOrder(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetHandlerType(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetCaseSensitivityOverride(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetPrefixOverride(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetPrefixRequirementOverride(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetRequirements(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetDisplayName(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetSummary(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.IsHidden(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetHelpCategory(ICommandInstanceDescriptor)
    CommandInstanceDescriptorExtensions.GetAllAttributes<T>(ICommandInstanceDescriptor, Boolean)
    CommandInstanceDescriptorExtensions.GetAttribute<T>(ICommandInstanceDescriptor, Boolean)