-
-
Notifications
You must be signed in to change notification settings - Fork 50
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 |
AliasAlternative name of the command |
get |
bool |
AllowImpersonationIndicates if the commands can be run as another client |
get |
string |
DescriptionDescription of the command |
get |
bool |
IsBroadcastIndicates if the command result should be broadcasted to all clients |
get, set |
string |
NameName of the command |
get |
Permission |
PermissionMinimum permission required to execute the command |
get |
bool |
RequiresTargetIndicates if target is required |
get |
Game``[] |
SupportedGamesGames the command is supported on |
get |
string |
SyntaxSyntax 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