]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/command/generic.qh
Make client includes order insensitive
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / command / generic.qh
1 #ifndef GENERIC_H
2 #define GENERIC_H
3
4 #include "../constants.qh"
5 #include "markup.qh"
6 #include "rpn.qh"
7
8 // =========================================================
9 //  Declarations for common command code, written by Samual
10 //  Last updated: December 28th, 2011
11 // =========================================================
12
13 void GenericCommand_macro_help();
14
15 float GenericCommand_macro_command(float argc, string command);
16
17 float GenericCommand_macro_usage(float argc);
18
19 void GenericCommand_macro_write_aliases(float fh);
20
21 // Used by other game command systems for common commands,
22 // and it returns true if handled, false if not.
23 // Note: It tokenizes its input, so be careful!
24 float GenericCommand(string command);
25
26 // Returns command prefix specific for whatever program it is compiled in
27 string GetProgramCommandPrefix(void);
28
29 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
30 #define CMD_Write(s) fputs(fh, s)
31 #define CMD_Write_Alias(execute,command,description) CMD_Write(sprintf("alias %-20s \"%-13s %-20s ${* ?}\" // %s\n", command, execute, command, description))
32 void GenericCommand_macro_write_aliases(float fh);
33
34 void Curl_URI_Get_Callback(int id, float status, string data);
35 int curl_uri_get_pos;
36 float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1];
37 string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1];
38 #endif