Table of Contents

Class BaseConsoleCommand

Namespace
S1API.Console
Assembly
S1API.dll

Abstract base class for creating console commands. Inherit from this base class to auto-register a custom command in the API.

public abstract class BaseConsoleCommand
Inheritance
BaseConsoleCommand
Inherited Members
Extension Methods

Constructors

BaseConsoleCommand()

protected BaseConsoleCommand()

Properties

CommandDescription

A brief description of what the command does.

public abstract string CommandDescription { get; }

Property Value

string

CommandWord

The command word that triggers this console command.

public abstract string CommandWord { get; }

Property Value

string

ExampleUsage

An example of how to use the command.

public abstract string ExampleUsage { get; }

Property Value

string

Methods

ExecuteCommand(List<string>)

Executes the command with the provided arguments.

public abstract void ExecuteCommand(List<string> args)

Parameters

args List<string>

The list of arguments passed to the command.