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