OpenTTD Source 20241224-master-gee860a5c8e
IConsoleCmd Struct Reference

Public Member Functions

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

Data Fields

std::string name
 name of command
 
IConsoleCmdProcproc
 process executed when command is typed
 
IConsoleHook * hook
 any special trigger action that needs executing
 

Detailed Description

Definition at line 35 of file console_internal.h.

Constructor & Destructor Documentation

◆ IConsoleCmd()

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

Definition at line 36 of file console_internal.h.

Field Documentation

◆ hook

IConsoleHook* IConsoleCmd::hook

any special trigger action that needs executing

Definition at line 40 of file console_internal.h.

Referenced by IConsoleCmdExec().

◆ name

std::string IConsoleCmd::name

name of command

Definition at line 38 of file console_internal.h.

◆ proc

IConsoleCmdProc* IConsoleCmd::proc

process executed when command is typed

Definition at line 39 of file console_internal.h.

Referenced by IConsoleCmdExec().


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