Skip to content

iw4madminapplicationpluginscript ScriptCommand

RaidMax edited this page May 21, 2023 · 1 revision

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
Loading

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

Clone this wiki locally