Class CommandAttribute
An attribute that marks a class as being that of an in-game command.
Inherited Members
Namespace: SociallyDistant.Core.OS.Tasks
Assembly: SociallyDistant.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class CommandAttribute : Attribute
Constructors
CommandAttribute(string)
Creates a new instance of the CommandAttribute class.
Declaration
public CommandAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the command. |
Properties
Cheat
Gets or sets a value indicating whether this command is a cheat.
Declaration
public bool Cheat { get; set; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets the name of the command.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |