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