sharedlibrarycore Command - RaidMax/IW4M-Admin GitHub Wiki

Command Public class

Description

Abstract class for command

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SharedLibraryCore
  SharedLibraryCore.Command[Command](/RaidMax/IW4M-Admin/wiki/Command)
  class SharedLibraryCore.Command abstractStyle;
  end
  subgraph SharedLibraryCore.Interfaces
  SharedLibraryCore.Interfaces.IManagerCommand[IManagerCommand](/RaidMax/IW4M-Admin/wiki/IManagerCommand)
  class SharedLibraryCore.Interfaces.IManagerCommand interfaceStyle;
  end
SharedLibraryCore.Interfaces.IManagerCommand --> SharedLibraryCore.Command

Members

Properties

Public properties

Type Name Methods
string AliasAlternate name for this command to be executed by get, protected set
bool AllowImpersonationindicates if this command allows impersonation (run as) get, set
CommandArgument[] ArgumentsArgument list for the command get, protected set
string DescriptionSpecifies the command description get, protected set
bool IsBroadcast get, set
string NameSpecifies the name and string that triggers the command get, protected set
Permission PermissionMinimum permission level to execute command get, protected set
int RequiredArgumentCountHelper property to determine the number of required args get
bool RequiresTargetIndicates if the command requires a target to execute on get, protected set
Game``[] SupportedGames get, protected set
string SyntaxHelper property to provide the syntax of the command get

Methods

Public methods

Returns Name
Task ExecuteAsync(GameEvent gameEvent)Executes the command

Details

Summary

Abstract class for command

Inheritance

Constructors

Command

Source code

public Command(CommandConfiguration config, ITranslationLookup layout)
Arguments
Type Name Description
CommandConfiguration config
ITranslationLookup layout

Methods

ExecuteAsync

public abstract Task ExecuteAsync(GameEvent gameEvent)
Arguments
Type Name Description
GameEvent gameEvent
Summary

Executes the command

Returns

Properties

RequiredArgumentCount

public int RequiredArgumentCount { get; }
Summary

Helper property to determine the number of required args

Arguments

public CommandArgument Arguments { get; protected set; }
Summary

Argument list for the command

Name

public string Name { get; protected set; }
Summary

Specifies the name and string that triggers the command

Description

public string Description { get; protected set; }
Summary

Specifies the command description

Syntax

public virtual string Syntax { get; }
Summary

Helper property to provide the syntax of the command

Alias

public string Alias { get; protected set; }
Summary

Alternate name for this command to be executed by

RequiresTarget

public bool RequiresTarget { get; protected set; }
Summary

Indicates if the command requires a target to execute on

Permission

public Permission Permission { get; protected set; }
Summary

Minimum permission level to execute command

SupportedGames

public Game SupportedGames { get; protected set; }

AllowImpersonation

public bool AllowImpersonation { get; set; }
Summary

indicates if this command allows impersonation (run as)

IsBroadcast

public virtual bool IsBroadcast { get; set; }

Generated with ModularDoc