Class CommandGroupAttribute
- Namespace
- BSGameLib.Chat.Attributes
- Assembly
- BSGameLib.Chat.dll
Marks a command as a sub-command of the group named by the attribute. The group's keywords are added to the group's own; the sub-command's CommandAttribute names it within the group.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class CommandGroupAttribute : CommandAttribute
- Inheritance
-
CommandGroupAttribute
- Inherited Members
Constructors
CommandGroupAttribute(string, params string[])
Creates the attribute for a sub-command of the group named name.
public CommandGroupAttribute(string name, params string[] keywords)
Parameters
Properties
IsDefaultCommand
Whether this sub-command runs when the group is typed with nothing after it. A default command cannot take parameters.
public bool IsDefaultCommand { get; set; }