Makefile: use `-I.`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / all.qh
1 #ifndef SERVER_COMMANDS_ALL_H
2 #define SERVER_COMMANDS_ALL_H
3
4 #include <common/command/command.qh>
5 REGISTRY(SERVER_COMMANDS, BITS(7))
6 #define SERVER_COMMANDS_from(i) _SERVER_COMMANDS_from(i, NULL)
7 REGISTER_REGISTRY(SERVER_COMMANDS)
8 REGISTRY_SORT(SERVER_COMMANDS)
9
10 #define SERVER_COMMAND(id, description) \
11         CLASS(servercommand_##id, Command) \
12                 ATTRIB(servercommand_##id, m_name, string, #id); \
13         ATTRIB(servercommand_##id, m_description, string, description); \
14         ENDCLASS(servercommand_##id) \
15     REGISTER(SERVER_COMMANDS, CMD_SV, id, m_id, NEW(servercommand_##id)); \
16         METHOD(servercommand_##id, m_invokecmd, void(int request, entity caller, int arguments, string command))
17
18 STATIC_INIT(SERVER_COMMANDS_aliases) {
19         FOREACH(SERVER_COMMANDS, true, LAMBDA(localcmd(sprintf("alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, "qc_cmd_sv"))));
20 }
21
22 #include "sv_cmd.qh"
23
24 #include "banning.qh"
25 #include "cmd.qh"
26 #include "common.qh"
27 #include "getreplies.qh"
28 #include "radarmap.qh"
29 #include "vote.qh"
30
31 #endif