/* host.h public host structures and functions $Id: host.h,v 1.5 2007/04/19 14:06:20 sezero Exp $ */ #ifndef __HX2_HOST_H #define __HX2_HOST_H // quakeparms structure specifies the base of the directory tree, the // command line parms passed to the program, and the amount of memory // available for the program to use typedef struct quakeparms_s { char *basedir; char *userdir; // userspace directory on UNIX platforms int argc; char **argv; void *membase; int memsize; } quakeparms_t; extern quakeparms_t *host_parms; #define isDedicated 0 /* compatibility */ extern cvar_t sys_ticrate; extern cvar_t sys_nostdout; extern cvar_t developer; extern cvar_t password; extern cvar_t talksounds; extern qboolean host_initialized; // true if into command execution extern double host_frametime; extern byte *host_basepal; extern byte *host_colormap; extern int host_framecount; // incremented every frame, never reset extern double realtime; // not bounded in any way, changed at // start of every frame, never reset void Host_Init (void); void Host_InitCommands (void); void Host_Shutdown(void); void Host_Error (const char *error, ...) __attribute__((format(printf,1,2))); void Host_EndGame (const char *message, ...) __attribute__((format(printf,1,2))); void Host_Frame (float time); void Host_Quit_f (void); void Host_ClientCommands (const char *fmt, ...) __attribute__((format(printf,1,2))); void Host_ShutdownServer (qboolean crash); void Host_WriteConfiguration (const char *fname); #endif /* __HX2_HOST_H */