16 #define CLIENT_COMMAND(id, description) \ 17 CLASS(clientcommand_##id, Command) \ 18 ATTRIB(clientcommand_##id, m_name, string, #id); \ 19 ATTRIB(clientcommand_##id, m_description, string, description); \ 20 ENDCLASS(clientcommand_##id) \ 21 REGISTER(CLIENT_COMMANDS, CMD_CL, id, m_id, NEW(clientcommand_##id)); \ 22 METHOD(clientcommand_##id, m_invokecmd, void(clientcommand_##id this, int request, entity caller, int arguments, string command)) 25 FOREACH(CLIENT_COMMANDS,
true,
localcmd(sprintf(
"alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name,
"qc_cmd_cl")));
void Cmd_Scoreboard_Help()
#define CLIENT_COMMANDS(ent, request, arguments, command)
#define REGISTRY_SORT(...)
#define REGISTER_REGISTRY(id)
STATIC_INIT(CLIENT_COMMANDS_aliases)
#define REGISTRY_DEFINE_GET(id, null)
void LocalCommand_macro_write_aliases(int fh)
#define REGISTRY(id, max)
Declare a new registry.
void ConsoleCommand_macro_init()
#define FOREACH(list, cond, body)
void Cmd_Scoreboard_SetFields(int)