9 #define SERVER_COMMAND(id, description) \ 10 CLASS(servercommand_##id, Command) \ 11 ATTRIB(servercommand_##id, m_name, string, #id); \ 12 ATTRIB(servercommand_##id, m_description, string, description); \ 13 ENDCLASS(servercommand_##id) \ 14 REGISTER(SERVER_COMMANDS, CMD_SV, id, m_id, NEW(servercommand_##id)); \ 15 METHOD(servercommand_##id, m_invokecmd, void(servercommand_##id this, int request, entity caller, int arguments, string command)) 18 FOREACH(SERVER_COMMANDS,
true, {
localcmd(sprintf(
"alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name,
"qc_cmd_sv")); });
#define REGISTRY_SORT(...)
#define REGISTER_REGISTRY(id)
#define REGISTRY_DEFINE_GET(id, null)
#define REGISTRY(id, max)
Declare a new registry.
STATIC_INIT(GENERIC_COMMANDS_aliases)
#define FOREACH(list, cond, body)