Search Results for

    Show / Hide Table of Contents

    Class Command

    Decorate your method with this attribute and use RegisterCommands<T>() or RegisterCommands(Object) to register commands.

    Inheritance
    Object
    Attribute
    Command
    Inherited Members
    Attribute.Equals(Object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, Boolean)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, Boolean)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, Boolean)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, Boolean)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, Boolean)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, Boolean)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, Boolean)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, Boolean)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, Boolean)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, Boolean)
    Attribute.Match(Object)
    Attribute.TypeId
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: RageCoop.Server.Scripting
    Assembly: RageCoop.Server.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, Inherited = false)]
    public class Command : Attribute

    Constructors

    Command(String)

    Declaration
    public Command(string name)
    Parameters
    Type Name Description
    String name

    Name of the command

    Properties

    ArgsLength

    Set the length of arguments (Example: 2 for "/message USERNAME MESSAGE". Usage required!)

    Declaration
    public short ArgsLength { get; set; }
    Property Value
    Type Description
    Int16

    Name

    Sets name of the command

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String

    Usage

    Set the Usage (Example: "Please use "/help"". ArgsLength required!)

    Declaration
    public string Usage { get; set; }
    Property Value
    Type Description
    String
    In This Article
    Back to top Generated by DocFX