1 iw4madminapplicationpluginscript ScriptCommand
RaidMax edited this page 2023-05-20 22:09:21 -05:00

ScriptCommand Public class

Description

generic script command implementation

Diagram

  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

Members

Methods

Public methods

Returns Name
Task ExecuteAsync(GameEvent e)

Details

Summary

generic script command implementation

Inheritance

Constructors

ScriptCommand

Source code

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)
Arguments
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

Methods

ExecuteAsync

Source code

public override async Task ExecuteAsync(GameEvent e)
Arguments
Type Name Description
GameEvent e

Generated with ModularDoc