OpenTTD Source: IConsoleCmd Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
IConsoleCmd Struct Reference

## Public Member Functions
| IConsoleCmd (const std::string &name, IConsoleCmdProc *proc, IConsoleHook *hook)

## Data Fields
std::string | name
| name of command
IConsoleCmdProc * | proc
| process executed when command is typed
IConsoleHook * | hook
| any special trigger action that needs executing

## Detailed Description

Definition at line 34 of file console_internal.h.

## Constructor & Destructor Documentation

## ◆ IConsoleCmd()

IConsoleCmd::IConsoleCmd | ( | const std::string & | name,
|  | IConsoleCmdProc * | proc,
|  | IConsoleHook * | hook
| ) |  |
| inline

Definition at line 35 of file console_internal.h.

## Field Documentation

## ◆ hook

IConsoleHook* IConsoleCmd::hook

any special trigger action that needs executing

Definition at line 39 of file console_internal.h.

Referenced by IConsoleCmdExec().

## ◆ name

std::string IConsoleCmd::name

name of command

Definition at line 37 of file console_internal.h.

## ◆ proc

IConsoleCmdProc* IConsoleCmd::proc

process executed when command is typed

Definition at line 38 of file console_internal.h.

Referenced by IConsoleCmdExec().

The documentation for this struct was generated from the following file:

- src/console_internal.h