|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | __AUTOCVAR(file, archive, var, type, desc, default) |
| #define | _AUTOCVAR(...) |
| #define | AUTOCVAR(...) |
| #define | AUTOCVAR_5(file, archive, var, type, desc) |
| #define | AUTOCVAR_6(file, archive, var, type, default, desc) |
| #define | AUTOCVAR_SAVE(...) |
| #define | BINOP(op, len, expr) |
| #define | EVAL__AUTOCVAR(...) |
| #define | repr_cvar_bool(x) |
| #define | repr_cvar_float(x) |
| #define | repr_cvar_int(x) |
| #define | repr_cvar_string(x) |
| #define | repr_cvar_vector(x) |
| #define | X(expr) |
Functions | |
| ERASEABLE bool | cvar_value_issafe (string s) |
| ERASEABLE bool | expr_evaluate (string s) |
| Evaluate an expression of the form: [+ | -]? | |
| ERASEABLE string | MakeConsoleSafe (string input) |
| escape the string to make it safe for consoles | |
| ERASEABLE void | RegisterCvars (void(string name, string def, string desc, bool archive, string file) f) |
| ERASEABLE void | RegisterCvars_Save (string name, string def, string desc, bool archive, string file) |
| ERASEABLE void | RegisterCvars_Set (string name, string def, string desc, bool archive, string file) |
| STATIC_INIT_LATE (Cvars) | |
Variables | |
| const noref bool | default_bool = false |
| const noref float | default_float = 0 |
| const noref int | default_int = 0 |
| const noref string | default_string = "" |
| const noref vector | default_vector = '0 0 0' |
| int | RegisterCvars_Save_fd |
| #define __AUTOCVAR | ( | file, | |
| archive, | |||
| var, | |||
| type, | |||
| desc, | |||
| default ) |
Definition at line 148 of file cvar.qh.
| #define _AUTOCVAR | ( | ... | ) |
| #define AUTOCVAR | ( | ... | ) |
| #define AUTOCVAR_5 | ( | file, | |
| archive, | |||
| var, | |||
| type, | |||
| desc ) |
Definition at line 154 of file cvar.qh.
| #define AUTOCVAR_6 | ( | file, | |
| archive, | |||
| var, | |||
| type, | |||
| default, | |||
| desc ) |
Definition at line 156 of file cvar.qh.
| #define AUTOCVAR_SAVE | ( | ... | ) |
| #define BINOP | ( | op, | |
| len, | |||
| expr ) |
Referenced by expr_evaluate().
| #define X | ( | expr | ) |
Referenced by expr_evaluate().
Definition at line 11 of file cvar.qh.
References strstrofs.
Referenced by _MapInfo_Parse_Settemp(), InitGameplayMode(), MapInfo_Get_ByName_NoFallbacks(), and spawnfunc().
Evaluate an expression of the form: [+ | -]?
[var[op]val | [op]var | val | var] ... +: all must match. this is the default -: one must NOT match
var>x var<x var>=x var<=x var==x var!=x var===x var!==x
Definition at line 48 of file cvar.qh.
References argv(), BINOP, cvar(), cvar_string(), ftos(), stof(), str2chr, substring(), tokenize_console, and X.
Referenced by SV_OnEntityPreSpawnFunction().
escape the string to make it safe for consoles
Definition at line 24 of file cvar.qh.
Referenced by GameCommand_adminmsg(), Local_Notification(), Local_Notification_centerprint_Add(), Local_Notification_HUD_Notify_Push(), Local_Notification_sprintf(), net_handle_ServerWelcome(), RegisterCvars_Set(), Send_Notification(), Send_Notification_WOCOVA(), Send_Notification_WOVA(), and Welcome_Message_Show_Try().
| ERASEABLE void RegisterCvars_Save | ( | string | name, |
| string | def, | ||
| string | desc, | ||
| bool | archive, | ||
| string | file ) |
Definition at line 113 of file cvar.qh.
References fputs(), name, and RegisterCvars_Save_fd.
Referenced by STATIC_INIT_LATE().
| ERASEABLE void RegisterCvars_Set | ( | string | name, |
| string | def, | ||
| string | desc, | ||
| bool | archive, | ||
| string | file ) |
Definition at line 104 of file cvar.qh.
References localcmd(), MakeConsoleSafe(), and name.
Referenced by STATIC_INIT_LATE().
| STATIC_INIT_LATE | ( | Cvars | ) |
Definition at line 119 of file cvar.qh.
References fclose(), FILE_WRITE, fopen(), PROGNAME, RegisterCvars(), RegisterCvars_Save(), RegisterCvars_Save_fd, and RegisterCvars_Set().
| int RegisterCvars_Save_fd |
Definition at line 111 of file cvar.qh.
Referenced by RegisterCvars_Save(), and STATIC_INIT_LATE().