Go to the source code of this file.
◆ SERVER_COMMAND
#define SERVER_COMMAND |
( |
|
id, |
|
|
|
description |
|
) |
| |
Value: ATTRIB(servercommand_##
id,
m_name,
string, #
id); \
ATTRIB(servercommand_##id, m_description, string, description); \
ENDCLASS(servercommand_##id) \
REGISTER(SERVER_COMMANDS, CMD_SV,
id,
m_id,
NEW(servercommand_##
id)); \
METHOD(servercommand_##
id, m_invokecmd,
void(servercommand_##
id this,
int request,
entity caller,
int arguments,
string command))
Definition at line 9 of file reg.qh.
◆ STATIC_INIT()
STATIC_INIT |
( |
SERVER_COMMANDS_aliases |
| ) |
|
Definition at line 17 of file reg.qh.
References FOREACH, and localcmd.
18 FOREACH(SERVER_COMMANDS,
true, {
localcmd(sprintf(
"alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name,
"qc_cmd_sv")); });
#define FOREACH(list, cond, body)