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