UFO: Alien Invasion
Loading...
Searching...
No Matches
cvar_t Struct Reference

This is a cvar definition. Cvars can be user modified and used in our menus e.g. More...

#include <cvar.h>

Collaboration diagram for cvar_t:
Collaboration graph

Data Fields

char * name
char * string
char * latchedString
char * defaultString
char * oldString
char * description
int flags
bool modified
float value
int integer
bool(* check )(struct cvar_s *cvar)
cvarChangeListener_tchangeListener
struct cvar_s * next
struct cvar_s * prev
struct cvar_s * hash_next

Detailed Description

This is a cvar definition. Cvars can be user modified and used in our menus e.g.

Note
nothing outside the Cvar_*() functions should modify these fields!

Definition at line 71 of file cvar.h.

Field Documentation

◆ changeListener

◆ check

bool(* cvar_t::check) (struct cvar_s *cvar)

cvar check function

Definition at line 82 of file cvar.h.

Referenced by Cvar_Set2(), and Cvar_SetCheckFunction().

◆ defaultString

char* cvar_t::defaultString

default string set on first init - only set for CVAR_CHEAT

Definition at line 75 of file cvar.h.

Referenced by Cvar_Delete(), and Cvar_Get().

◆ description

char* cvar_t::description

cvar description

Definition at line 77 of file cvar.h.

Referenced by Cvar_Delete(), and Cvar_Get().

◆ flags

int cvar_t::flags

cvar flags CVAR_ARCHIVE|CVAR_NOSET....

Definition at line 78 of file cvar.h.

Referenced by Cvar_Delete(), Cvar_FullSet(), Cvar_Get(), Cvar_Set2(), Cvar_Set_f(), and Cvar_Switch_f().

◆ hash_next

struct cvar_s* cvar_t::hash_next

Definition at line 86 of file cvar.h.

◆ integer

◆ latchedString

char* cvar_t::latchedString

for CVAR_LATCH vars

Definition at line 74 of file cvar.h.

Referenced by Cvar_Delete(), and Cvar_Set2().

◆ modified

bool cvar_t::modified

set each time the cvar is changed

Definition at line 79 of file cvar.h.

Referenced by Cvar_FullSet(), Cvar_Get(), Cvar_Set2(), and GAME_MP_RunFrame().

◆ name

◆ next

struct cvar_s* cvar_t::next

Definition at line 84 of file cvar.h.

Referenced by CL_Init(), CL_Shutdown(), Cvar_Delete(), and Cvar_Get().

◆ oldString

char* cvar_t::oldString

value of the cvar before we changed it

Definition at line 76 of file cvar.h.

Referenced by Cvar_Delete(), Cvar_ExecuteChangeListener(), Cvar_FullSet(), Cvar_Get(), Cvar_Reset(), Cvar_Set2(), and Cvar_VariableStringOld().

◆ prev

struct cvar_s* cvar_t::prev

Definition at line 85 of file cvar.h.

Referenced by Cvar_Delete().

◆ string

◆ value

float cvar_t::value

The documentation for this struct was generated from the following file: