Class ChatCommand
Inheritance
System.Object
ChatCommand
Assembly: Eco.Gameplay.dll
Syntax
public class ChatCommand : Object
Constructors
ChatCommand()
Declaration
Fields
Attribute
Declaration
public ChatCommandAttribute Attribute
Field Value
HelpText
Declaration
Field Value
Type |
Description |
System.String |
|
Key
Declaration
Field Value
Type |
Description |
System.String |
|
Method
Declaration
Field Value
Type |
Description |
System.Reflection.MethodInfo |
|
Name
Declaration
Field Value
Type |
Description |
System.String |
|
ParentKey
Declaration
Field Value
Type |
Description |
System.String |
|
ParentName
Declaration
Field Value
Type |
Description |
System.String |
|
ShortCut
Declaration
Field Value
Type |
Description |
System.String |
|
Properties
AuthLevel
Declaration
public ChatAuthorizationLevel AuthLevel { get; }
Property Value
FullName
Returns fully qualified command name (including parent name if it is sub command).
Declaration
public string FullName { get; }
Property Value
Type |
Description |
System.String |
|
HasSubCommands
Declaration
public bool HasSubCommands { get; }
Property Value
Type |
Description |
System.Boolean |
|
SubCommands
Declaration
public IEnumerable<ChatCommand> SubCommands { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<ChatCommand> |
|
Methods
AddSubCommand(ChatCommand)
Declaration
public void AddSubCommand(ChatCommand subCommand)
Parameters
CommandRequiresUser()
Checks if this command requires a user object to be executed.
Declaration
public bool CommandRequiresUser()
Returns
Type |
Description |
System.Boolean |
True if the command requres a user
|
Matches(String)
Declaration
public bool Matches(string searchString)
Parameters
Type |
Name |
Description |
System.String |
searchString |
|
Returns
Type |
Description |
System.Boolean |
|
TryGetSubCommand(String, out ChatCommand)
Declaration
public bool TryGetSubCommand(string nameOrKey, out ChatCommand command)
Parameters
Type |
Name |
Description |
System.String |
nameOrKey |
|
ChatCommand |
command |
|
Returns
Type |
Description |
System.Boolean |
|
WithLanguage(SupportedLanguage)
Returns ChatCommand localized for language
. It will only correctly work if original command is in English locale.
Declaration
public ChatCommand WithLanguage(SupportedLanguage language)
Parameters
Returns
Extension Methods