Xonotic
|
#include "generic.qh"
Go to the source code of this file.
Functions | |
void | Curl_URI_Get_Callback (int id, float status, string data) |
GENERIC_COMMAND (dumpcommands, "Dump all commands on the program to <program>_cmd_dump.txt", false) | |
GENERIC_COMMAND (addtolist, "Add a string to a cvar", true) | |
GENERIC_COMMAND (maplist, "Automatic control of maplist", true) | |
GENERIC_COMMAND (nextframe, "Execute the given command next frame of this VM", true) | |
GENERIC_COMMAND (qc_curl, "Queries a URL", true) | |
GENERIC_COMMAND (removefromlist, "Remove a string from a cvar", true) | |
GENERIC_COMMAND (restartnotifs, "Re-initialize all notifications", false) | |
GENERIC_COMMAND (rpn, "RPN calculator", true) | |
GENERIC_COMMAND (settemp, "Temporarily set a value to a cvar which is restored later", false) | |
GENERIC_COMMAND (settemp_restore, "Restore all cvars set by settemp command", false) | |
GENERIC_COMMAND (runtest, "Run unit tests", false) | |
float | GenericCommand (string command) |
void | GenericCommand_addtolist (int request, int argc) |
float | GenericCommand_macro_command (int argc, string command) |
void | GenericCommand_macro_help () |
float | GenericCommand_macro_usage (int argc) |
void | GenericCommand_macro_write_aliases (float fh) |
void | GenericCommand_maplist (int request, int argc) |
void | GenericCommand_nextframe (int request, string command) |
void | GenericCommand_qc_curl (int request, int argc) |
void | GenericCommand_removefromlist (int request, int argc) |
void | GenericCommand_restartnotifs (int request) |
void | GenericCommand_runtest (int request, int argc) |
void | GenericCommand_settemp (int request, int argc) |
void | GenericCommand_settemp_restore (int request) |
Definition at line 31 of file generic.qc.
References curl_uri_get_cvar, curl_uri_get_exec, cvar_set(), localcmd, LOG_INFO, LOG_TRACEF, strunzone(), and URI_GET_CURL.
Referenced by URI_Get_Callback().
GENERIC_COMMAND | ( | dumpcommands | , |
"Dump all commands on the program to <program>_cmd_dump.txt" | , | ||
false | |||
) |
Definition at line 172 of file generic.qc.
References BanCommand_macro_write_aliases(), ClientCommand_macro_write_aliases(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CMD_Write, CommonCommand_macro_write_aliases(), fclose(), FILE_WRITE, fopen(), GameCommand_macro_write_aliases(), GenericCommand_macro_write_aliases(), LocalCommand_macro_write_aliases(), LOG_HELP, LOG_INFO, and strcat().
Definition at line 535 of file generic.qc.
References GenericCommand_addtolist().
GENERIC_COMMAND | ( | maplist | , |
"Automatic control of maplist" | , | ||
true | |||
) |
Definition at line 536 of file generic.qc.
References GenericCommand_maplist().
Definition at line 537 of file generic.qc.
References GenericCommand_nextframe().
GENERIC_COMMAND | ( | qc_curl | , |
"Queries a URL" | , | ||
true | |||
) |
Definition at line 538 of file generic.qc.
References GenericCommand_qc_curl().
Definition at line 539 of file generic.qc.
References GenericCommand_removefromlist().
GENERIC_COMMAND | ( | restartnotifs | , |
"Re-initialize all notifications" | , | ||
false | |||
) |
Definition at line 540 of file generic.qc.
References GenericCommand_restartnotifs().
GENERIC_COMMAND | ( | rpn | , |
"RPN calculator" | , | ||
true | |||
) |
Definition at line 541 of file generic.qc.
References GenericCommand_rpn().
Definition at line 542 of file generic.qc.
References GenericCommand_settemp().
GENERIC_COMMAND | ( | settemp_restore | , |
"Restore all cvars set by settemp command" | , | ||
false | |||
) |
Definition at line 543 of file generic.qc.
References GenericCommand_settemp_restore().
GENERIC_COMMAND | ( | runtest | , |
"Run unit tests" | , | ||
false | |||
) |
Definition at line 544 of file generic.qc.
References GenericCommand_runtest().
Definition at line 582 of file generic.qc.
References argv(), argv_end_index, argv_start_index, floor(), GenericCommand_macro_command(), GenericCommand_markup(), hsl_to_rgb(), localcmd, max(), random(), rgb_to_hexcolor(), s2, strcat(), strlen(), substring(), tokenize_console, and vector().
Referenced by GameCommand().
Definition at line 60 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cons(), cvar_set(), cvar_string(), FOREACH_WORD, LOG_HELP, and LOG_INFOF.
Referenced by GENERIC_COMMAND().
Definition at line 551 of file generic.qc.
References argv(), and FOREACH.
Referenced by GenericCommand().
void GenericCommand_macro_help | ( | ) |
Definition at line 546 of file generic.qc.
References FOREACH, and LOG_HELPF.
Referenced by GameCommand().
Definition at line 561 of file generic.qc.
References argv(), and FOREACH.
Referenced by GameCommand().
Definition at line 571 of file generic.qc.
References CMD_Write_Alias, and FOREACH.
Referenced by GENERIC_COMMAND().
Definition at line 232 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cons(), cvar_set(), cvar_string(), fexists(), FOREACH_WORD, LOG_HELP, LOG_INFO, LOG_INFOF, MapInfo_CheckMap(), MapInfo_CurrentFeatures(), MapInfo_CurrentGametype(), MapInfo_Enumerate(), MapInfo_FilterGametype(), MapInfo_ForbiddenFlags(), MapInfo_RequiredFlags(), shufflewords(), strcat(), strlen(), substring(), and tokenizebyseparator.
Referenced by GENERIC_COMMAND().
Definition at line 315 of file generic.qc.
References argv_end_index, argv_start_index, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, queue_to_execute_next_frame(), and substring().
Referenced by GENERIC_COMMAND().
Definition at line 100 of file generic.qc.
References argv(), buf_create, CMD_REQUEST_COMMAND, curl_uri_get_cvar, curl_uri_get_exec, curl_uri_get_pos, LOG_INFO, stof(), string_null, strzone(), URI_GET_CURL, and URI_GET_CURL_END.
Referenced by GENERIC_COMMAND().
Definition at line 335 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cons(), cvar_set(), cvar_string(), FOREACH_WORD, LOG_HELP, and LOG_INFOF.
Referenced by GENERIC_COMMAND().
Definition at line 370 of file generic.qc.
References CALL_ACCUMULATED_FUNCTION, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, Destroy_All_Notifications(), FOREACH, LOG_HELP, LOG_INFO, and LOG_INFOF.
Referenced by GENERIC_COMMAND().
Definition at line 485 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, RUN_ALL_TESTS(), and TEST_Run().
Referenced by GENERIC_COMMAND().
Definition at line 427 of file generic.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_settemp(), LOG_HELP, LOG_INFOF, and LOG_TRACE.
Referenced by GENERIC_COMMAND().
Definition at line 458 of file generic.qc.
References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, cvar_settemp_restore(), ftos(), LOG_HELP, and LOG_TRACE.
Referenced by GENERIC_COMMAND().