OpenTTD Source 20241224-master-gf74b0cf984
|
–Aliases– Aliases are like shortcuts for complex functions, variable assignments, etc. More...
#include <console_internal.h>
Public Member Functions | |
IConsoleAlias (const std::string &name, const std::string &cmdline) | |
Data Fields | |
std::string | name |
name of the alias | |
std::string | cmdline |
command(s) that is/are being aliased | |
–Aliases– Aliases are like shortcuts for complex functions, variable assignments, etc.
You can use a simple alias to rename a longer command (eg 'set' for 'setting' for example), or concatenate more commands into one (eg. 'ng' for 'load A; unpause; debug_level 5'). Aliases can parse the arguments given to them in the command line.
Definition at line 55 of file console_internal.h.
|
inline |
Definition at line 56 of file console_internal.h.
std::string IConsoleAlias::cmdline |
command(s) that is/are being aliased
Definition at line 59 of file console_internal.h.
Referenced by IConsoleAliasExec().
std::string IConsoleAlias::name |
name of the alias
Definition at line 58 of file console_internal.h.
Referenced by IConsoleAliasExec().