|
static CommandList & | Commands () |
|
static AliasList & | Aliases () |
|
static void | CmdRegister (const std::string &name, IConsoleCmdProc *proc, IConsoleHook *hook=nullptr) |
| Register a new command to be used in the console.
|
|
static IConsoleCmd * | CmdGet (const std::string &name) |
| Find the command pointed to by its string.
|
|
static void | AliasRegister (const std::string &name, const std::string &cmd) |
| Register a an alias for an already existing command in the console.
|
|
static IConsoleAlias * | AliasGet (const std::string &name) |
| Find the alias pointed to by its string.
|
|
Definition at line 62 of file console_internal.h.
◆ AliasList
◆ CommandList
typedef std::map<std::string, IConsoleCmd> IConsole::CommandList |
◆ Aliases()
IConsole::AliasList & IConsole::Aliases |
( |
| ) |
|
|
static |
◆ AliasGet()
◆ AliasRegister()
void IConsole::AliasRegister |
( |
const std::string & |
name, |
|
|
const std::string & |
cmd |
|
) |
| |
|
static |
◆ CmdGet()
IConsoleCmd * IConsole::CmdGet |
( |
const std::string & |
name | ) |
|
|
static |
◆ CmdRegister()
void IConsole::CmdRegister |
( |
const std::string & |
name, |
|
|
IConsoleCmdProc * |
proc, |
|
|
IConsoleHook * |
hook = nullptr |
|
) |
| |
|
static |
Register a new command to be used in the console.
- Parameters
-
name | name of the command that will be used |
proc | function that will be called upon execution of command |
Definition at line 160 of file console.cpp.
References RemoveUnderscores().
◆ Commands()
IConsole::CommandList & IConsole::Commands |
( |
| ) |
|
|
static |
The documentation for this struct was generated from the following files: