Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
cl_cmd.qh
Go to the documentation of this file.
1#pragma once
2
3void Cmd_Scoreboard_SetFields(int argc);
6
7// used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
9
10REGISTRY(CLIENT_COMMANDS, BITS(7))
11REGISTER_REGISTRY(CLIENT_COMMANDS)
12REGISTRY_SORT(CLIENT_COMMANDS)
13
14REGISTRY_DEFINE_GET(CLIENT_COMMANDS, NULL)
15
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))
23
24STATIC_INIT(CLIENT_COMMANDS_aliases) {
25 FOREACH(CLIENT_COMMANDS, true, localcmd(sprintf("alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, "qc_cmd_cl")));
26}
#define BITS(n)
Definition bits.qh:9
void Cmd_Scoreboard_Help()
void Cmd_Scoreboard_SetFields(int argc)
void ConsoleCommand_macro_init()
Definition cl_cmd.qc:605
void LocalCommand_macro_write_aliases(int fh)
Definition cl_cmd.qc:519
#define FOREACH(list, cond, body)
Definition iter.qh:19
void localcmd(string command,...)
#define NULL
Definition post.qh:14
#define REGISTRY_SORT(...)
Definition registry.qh:128
#define REGISTER_REGISTRY(id)
Definition registry.qh:229
#define REGISTRY(id, max)
Declare a new registry.
Definition registry.qh:26
#define REGISTRY_DEFINE_GET(id, null)
Definition registry.qh:40
#define STATIC_INIT(func)
during worldspawn
Definition static.qh:32