Go to the source code of this file.
◆ GENERIC_COMMAND
#define GENERIC_COMMAND |
( |
|
id, |
|
|
|
description, |
|
|
|
menubased |
|
) |
| |
Value: ATTRIB(genericcommand_##
id,
m_name,
string, #
id); \
ATTRIB(genericcommand_##id, m_description, string, description); \
ATTRIB(genericcommand_##
id,
m_menubased,
bool, menubased); \
ENDCLASS(genericcommand_##id) \
REGISTER(GENERIC_COMMANDS, CMD_G,
id,
m_id,
NEW(genericcommand_##
id)); \
METHOD(genericcommand_##
id, m_invokecmd,
void(genericcommand_##
id this,
int request,
entity caller,
int arguments,
string command))
Definition at line 12 of file reg.qh.
◆ STATIC_INIT()
STATIC_INIT |
( |
GENERIC_COMMANDS_aliases |
| ) |
|
Definition at line 21 of file reg.qh.
References FOREACH, and localcmd.
22 FOREACH(GENERIC_COMMANDS,
true,
localcmd(sprintf(
"alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, ((it.m_menubased) ?
"qc_cmd_svmenu" :
"qc_cmd_svcl"))));
#define FOREACH(list, cond, body)
◆ m_menubased