Class CommandDefinition
- Namespace
- CounterStrikeSharp.API.Core.Commands
- Assembly
- CounterStrikeSharp.API.dll
public class CommandDefinition
- Inheritance
-
objectCommandDefinition
Constructors
CommandDefinition()
public CommandDefinition()
CommandDefinition(string, string, CommandCallback)
public CommandDefinition(string name, string description, CommandInfo.CommandCallback callback)
Parameters
name
stringdescription
stringcallback
CommandInfo.CommandCallback
Properties
Callback
public CommandInfo.CommandCallback Callback { get; init; }
Property Value
Description
public string Description { get; init; }
Property Value
ExecutableBy
public CommandUsage ExecutableBy { get; init; }
Property Value
MinArgs
public int? MinArgs { get; init; }
Property Value
- int?
Name
public string Name { get; init; }
Property Value
UsageHint
public string? UsageHint { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.