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