sharedlibrarycore Command - RaidMax/IW4M-Admin GitHub Wiki
Public class
Command Description
Abstract class for command
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore
SharedLibraryCore.Command[Command](/RaidMax/IW4M-Admin/wiki/Command)
class SharedLibraryCore.Command abstractStyle;
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IManagerCommand[IManagerCommand](/RaidMax/IW4M-Admin/wiki/IManagerCommand)
class SharedLibraryCore.Interfaces.IManagerCommand interfaceStyle;
end
SharedLibraryCore.Interfaces.IManagerCommand --> SharedLibraryCore.Command
Members
Properties
Public properties
Type | Name | Methods |
---|---|---|
string |
Alias Alternate name for this command to be executed by |
get, protected set |
bool |
AllowImpersonation indicates if this command allows impersonation (run as) |
get, set |
CommandArgument [] |
Arguments Argument list for the command |
get, protected set |
string |
Description Specifies the command description |
get, protected set |
bool |
IsBroadcast |
get, set |
string |
Name Specifies the name and string that triggers the command |
get, protected set |
Permission |
Permission Minimum permission level to execute command |
get, protected set |
int |
RequiredArgumentCount Helper property to determine the number of required args |
get |
bool |
RequiresTarget Indicates if the command requires a target to execute on |
get, protected set |
Game``[] |
SupportedGames |
get, protected set |
string |
Syntax Helper property to provide the syntax of the command |
get |
Methods
Public methods
Returns | Name |
---|---|
Task |
ExecuteAsync (GameEvent gameEvent)Executes the command |
Details
Summary
Abstract class for command
Inheritance
Constructors
Command
public Command(CommandConfiguration config, ITranslationLookup layout)
Arguments
Type | Name | Description |
---|---|---|
CommandConfiguration |
config | |
ITranslationLookup |
layout |
Methods
ExecuteAsync
public abstract Task ExecuteAsync(GameEvent gameEvent)
Arguments
Type | Name | Description |
---|---|---|
GameEvent |
gameEvent |
Summary
Executes the command
Returns
Properties
RequiredArgumentCount
public int RequiredArgumentCount { get; }
Summary
Helper property to determine the number of required args
Arguments
public CommandArgument Arguments { get; protected set; }
Summary
Argument list for the command
Name
public string Name { get; protected set; }
Summary
Specifies the name and string that triggers the command
Description
public string Description { get; protected set; }
Summary
Specifies the command description
Syntax
public virtual string Syntax { get; }
Summary
Helper property to provide the syntax of the command
Alias
public string Alias { get; protected set; }
Summary
Alternate name for this command to be executed by
RequiresTarget
public bool RequiresTarget { get; protected set; }
Summary
Indicates if the command requires a target to execute on
Permission
public Permission Permission { get; protected set; }
Summary
Minimum permission level to execute command
SupportedGames
public Game SupportedGames { get; protected set; }
AllowImpersonation
public bool AllowImpersonation { get; set; }
Summary
indicates if this command allows impersonation (run as)
IsBroadcast
public virtual bool IsBroadcast { get; set; }
Generated with ModularDoc