X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fgeneric.qh;h=be84c407ca193c3e4316f16d68e7950f4548b082;hb=31ca5938039b6bf61a583aa11f52e0b1ffeb3f63;hp=b3a63e918b7df4807aeea074e84a92635ecc6243;hpb=73b5db7874a1916b8d2fff36ab49607314a925dc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/generic.qh b/qcsrc/common/command/generic.qh index b3a63e918..be84c407c 100644 --- a/qcsrc/common/command/generic.qh +++ b/qcsrc/common/command/generic.qh @@ -1,15 +1,28 @@ +#ifndef COMMAND_GENERIC_H +#define COMMAND_GENERIC_H + +#include "../constants.qh" + // ========================================================= // Declarations for common command code, written by Samual // Last updated: December 28th, 2011 // ========================================================= +void GenericCommand_macro_help(); + +float GenericCommand_macro_command(float argc, string command); + +float GenericCommand_macro_usage(float argc); + +void GenericCommand_macro_write_aliases(float fh); + // Used by other game command systems for common commands, // and it returns true if handled, false if not. // Note: It tokenizes its input, so be careful! float GenericCommand(string command); // Returns command prefix specific for whatever program it is compiled in -string GetProgramCommandPrefix(void); +string GetProgramCommandPrefix(); // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file #define CMD_Write(s) fputs(fh, s) @@ -20,3 +33,4 @@ void Curl_URI_Get_Callback(int id, float status, string data); int curl_uri_get_pos; float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1]; string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1]; +#endif