-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplicationpluginscript ScriptCommand
RaidMax edited this page May 21, 2023
·
1 revision
generic script command implementation
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph IW4MAdmin.Application.Plugin.Script
IW4MAdmin.Application.Plugin.Script.ScriptCommand[[ScriptCommand]]
end
subgraph SharedLibraryCore
SharedLibraryCore.Command[[Command]]
class SharedLibraryCore.Command abstractStyle;
end
SharedLibraryCore.Command --> IW4MAdmin.Application.Plugin.Script.ScriptCommand
Returns | Name |
---|---|
Task |
ExecuteAsync (GameEvent e) |
generic script command implementation
public ScriptCommand(string name, string alias, string description, bool isTargetRequired, Permission permission, IEnumerable<CommandArgument> args, Func<GameEvent, Task> executeAction, CommandConfiguration config, ITranslationLookup layout, ILogger<ScriptCommand> logger, IEnumerable<Game> supportedGames)
Type | Name | Description |
---|---|---|
string |
name | |
string |
alias | |
string |
description | |
bool |
isTargetRequired | |
Permission |
permission | |
IEnumerable <CommandArgument > |
args | |
Func <GameEvent , Task > |
executeAction | |
CommandConfiguration |
config | |
ITranslationLookup |
layout | |
ILogger <ScriptCommand > |
logger | |
IEnumerable <Game > |
supportedGames |
public override async Task ExecuteAsync(GameEvent e)
Type | Name | Description |
---|---|---|
GameEvent |
e |
Generated with ModularDoc