]> icculus.org git repositories - btb/d2x.git/blob - include/console.h
Trying to get network working on win32
[btb/d2x.git] / include / console.h
1 /* Console */
2
3 #ifndef _CONSOLE_H_
4 #define _CONSOLE_H_ 1
5
6 #include "pstypes.h"
7
8 /* Priority levels */
9 #define CON_CRITICAL -2
10 #define CON_URGENT   -1
11 #define CON_NORMAL    0
12 #define CON_VERBOSE   1
13 #define CON_DEBUG     2
14
15 int  con_init(void);
16 void con_printf(int level, char *fmt, ...);
17
18 void con_draw(void);
19 void con_update(void);
20
21
22 /* CVar stuff */
23 typedef struct cvar_s
24 {
25         char *name;
26         char *string;
27         dboolean archive;
28         float value;
29         struct cvar_s *next;
30 } cvar_t;
31
32 extern cvar_t *cvar_vars;
33
34 /* Register a CVar with the name and string and optionally archive elements set */
35 void cvar_registervariable (cvar_t *cvar);
36
37 /* Equivalent to typing <var_name> <value> at the console */
38 void cvar_set(char *cvar_name, char *value);
39
40 /* Get a CVar's value */
41 float cvar(char *cvar_name);
42
43 /* Console CVars */
44 /* How discriminating we are about which messages are displayed */
45 extern cvar_t con_threshold;
46
47 #endif /* _CONSOLE_H_ */
48