2008-06-30 01:03:51 +00:00
|
|
|
#ifndef __osdcmds_h__
|
|
|
|
#define __osdcmds_h__
|
|
|
|
|
|
|
|
struct osdcmd_cheatsinfo {
|
2008-11-20 14:06:36 +00:00
|
|
|
int cheatnum; // -1 = none, else = see DoCheats()
|
2008-06-30 01:03:51 +00:00
|
|
|
int volume,level;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat;
|
|
|
|
|
|
|
|
int registerosdcommands(void);
|
|
|
|
|
2008-07-27 21:33:28 +00:00
|
|
|
extern float r_ambientlight,r_ambientlightrecip;
|
|
|
|
|
2008-06-30 01:03:51 +00:00
|
|
|
enum cvartypes
|
|
|
|
{
|
|
|
|
CVAR_INT,
|
|
|
|
CVAR_UNSIGNEDINT,
|
|
|
|
CVAR_BOOL,
|
|
|
|
CVAR_STRING,
|
|
|
|
CVAR_NOMULTI = 128,
|
|
|
|
CVAR_MULTI = 256,
|
|
|
|
CVAR_NOSAVE = 512
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
char *helpstr;
|
|
|
|
void *var;
|
|
|
|
int type; // 0 = integer, 1 = unsigned integer, 2 = boolean, 3 = string, |128 = not in multiplayer, |256 = update multi
|
|
|
|
int extra; // for string, is the length
|
|
|
|
int min;
|
|
|
|
int max;
|
|
|
|
} cvarmappings;
|
|
|
|
|
|
|
|
extern cvarmappings cvar[];
|
|
|
|
|
|
|
|
#endif // __osdcmds_h__
|
|
|
|
|