3 #include <common/constants.qh>
5 // =========================================================
6 // Declarations for common command code, written by Samual
7 // Last updated: December 28th, 2011
8 // =========================================================
10 void GenericCommand_macro_help();
12 float GenericCommand_macro_command(float argc, string command);
14 float GenericCommand_macro_usage(float argc);
16 void GenericCommand_macro_write_aliases(float fh);
18 // Used by other game command systems for common commands,
19 // and it returns true if handled, false if not.
20 // Note: It tokenizes its input, so be careful!
21 float GenericCommand(string command);
23 // Returns command prefix specific for whatever program it is compiled in
25 #define GetProgramCommandPrefix() "sv_cmd"
27 #define GetProgramCommandPrefix() "cl_cmd"
29 #define GetProgramCommandPrefix() "menu_cmd"
32 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
33 #define CMD_Write(s) fputs(fh, s)
34 #define CMD_Write_Alias(execute,command,description) CMD_Write(sprintf("alias %-20s \"%-13s %-20s ${* ?}\" // %s\n", command, execute, command, description))
35 void GenericCommand_macro_write_aliases(float fh);
37 void Curl_URI_Get_Callback(int id, float status, string data);
39 float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1];
40 string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1];