-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreinterfaces IManagerCommand
RaidMax edited this page May 21, 2023
·
1 revision
Defines the basic properties of a command
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IManagerCommand[[IManagerCommand]]
class SharedLibraryCore.Interfaces.IManagerCommand interfaceStyle;
end
Type | Name | Methods |
---|---|---|
string |
Alias Alternative name of the command |
get |
bool |
AllowImpersonation Indicates if the commands can be run as another client |
get |
string |
Description Description of the command |
get |
bool |
IsBroadcast Indicates if the command result should be broadcasted to all clients |
get, set |
string |
Name Name of the command |
get |
Permission |
Permission Minimum permission required to execute the command |
get |
bool |
RequiresTarget Indicates if target is required |
get |
Game``[] |
SupportedGames Games the command is supported on |
get |
string |
Syntax Syntax for using the command |
get |
Returns | Name |
---|---|
Task |
ExecuteAsync (GameEvent gameEvent)Executes the command |
Defines the basic properties of a command
public Task ExecuteAsync(GameEvent gameEvent)
Type | Name | Description |
---|---|---|
GameEvent |
gameEvent | event corresponding to the command |
Executes the command
public string Name { get; }
Name of the command
public string Description { get; }
Description of the command
public string Alias { get; }
Alternative name of the command
public Permission Permission { get; }
Minimum permission required to execute the command
public Game SupportedGames { get; }
Games the command is supported on
public string Syntax { get; }
Syntax for using the command
public bool RequiresTarget { get; }
Indicates if target is required
public bool AllowImpersonation { get; }
Indicates if the commands can be run as another client
public bool IsBroadcast { get; set; }
Indicates if the command result should be broadcasted to all clients
Generated with ModularDoc