-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplicationfactories ScriptCommandFactory
RaidMax edited this page May 21, 2023
·
1 revision
implementation of IScriptCommandFactory
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph IW4MAdmin.Application.Factories
IW4MAdmin.Application.Factories.ScriptCommandFactory[[ScriptCommandFactory]]
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IScriptCommandFactory[[IScriptCommandFactory]]
class SharedLibraryCore.Interfaces.IScriptCommandFactory interfaceStyle;
end
SharedLibraryCore.Interfaces.IScriptCommandFactory --> IW4MAdmin.Application.Factories.ScriptCommandFactory
Returns | Name |
---|---|
IManagerCommand |
CreateScriptCommand (string name, string alias, string description, string permission, bool isTargetRequired, IEnumerable <CommandArgument > args, Func <GameEvent , Task > executeAction, IEnumerable <Game > supportedGames) |
implementation of IScriptCommandFactory
public ScriptCommandFactory(CommandConfiguration config, ITranslationLookup transLookup, IServiceProvider serviceProvider)
Type | Name | Description |
---|---|---|
CommandConfiguration |
config | |
ITranslationLookup |
transLookup | |
IServiceProvider |
serviceProvider |
public virtual IManagerCommand CreateScriptCommand(string name, string alias, string description, string permission, bool isTargetRequired, IEnumerable<CommandArgument> args, Func<GameEvent, Task> executeAction, IEnumerable<Game> supportedGames)
Type | Name | Description |
---|---|---|
string |
name | |
string |
alias | |
string |
description | |
string |
permission | |
bool |
isTargetRequired | |
IEnumerable <CommandArgument > |
args | |
Func <GameEvent , Task > |
executeAction | |
IEnumerable <Game > |
supportedGames |
Generated with ModularDoc