2008-06-30 01:03:51 +00:00
|
|
|
#ifndef __osdcmds_h__
|
|
|
|
#define __osdcmds_h__
|
|
|
|
|
|
|
|
struct osdcmd_cheatsinfo {
|
2009-01-09 09:29:17 +00:00
|
|
|
int32_t cheatnum; // -1 = none, else = see DoCheats()
|
|
|
|
int32_t volume,level;
|
2008-06-30 01:03:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat;
|
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
int32_t registerosdcommands(void);
|
2008-06-30 01:03:51 +00:00
|
|
|
|
2008-07-27 21:33:28 +00:00
|
|
|
extern float r_ambientlight,r_ambientlightrecip;
|
|
|
|
|
2008-06-30 01:03:51 +00:00
|
|
|
enum cvartypes
|
|
|
|
{
|
2009-03-29 15:16:33 +00:00
|
|
|
CVAR_FLOAT,
|
2008-06-30 01:03:51 +00:00
|
|
|
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;
|
2009-01-09 09:29:17 +00:00
|
|
|
int32_t type; // 0 = integer, 1 = unsigned integer, 2 = boolean, 3 = string, |128 = not in multiplayer, |256 = update multi
|
|
|
|
int32_t extra; // for string, is the length
|
|
|
|
int32_t min;
|
|
|
|
int32_t max;
|
2009-01-10 07:38:50 +00:00
|
|
|
} cvar_t;
|
2008-06-30 01:03:51 +00:00
|
|
|
|
2009-01-10 07:38:50 +00:00
|
|
|
extern cvar_t cvars[];
|
2008-06-30 01:03:51 +00:00
|
|
|
|
|
|
|
#endif // __osdcmds_h__
|
|
|
|
|