1 // =========================================================
2 // Declarations for common command code, written by Samual
3 // Last updated: December 28th, 2011
4 // =========================================================
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);
11 // Returns command prefix specific for whatever program it is compiled in
12 string GetProgramCommandPrefix(void);
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);