33 #ifndef __SYS_EVENT_H__
34 #define __SYS_EVENT_H__
36 #define D_EVENT_MAXARGS 8 // if changed, enable the CREATE_EVENT_CODE define in Event.cpp to generate switch statement for idClass::ProcessEventArgPtr.
39 #define D_EVENT_VOID ( ( char )0 )
40 #define D_EVENT_INTEGER 'd'
41 #define D_EVENT_FLOAT 'f'
42 #define D_EVENT_VECTOR 'v'
43 #define D_EVENT_STRING 's'
44 #define D_EVENT_ENTITY 'e'
45 #define D_EVENT_ENTITY_NULL 'E' // event can handle NULL entity pointers
46 #define D_EVENT_TRACE 't'
48 #define MAX_EVENTS 4096
71 const char *
GetName(
void )
const;
117 static void ServiceFastEvents();
119 static void Init(
void );
int argOffset[D_EVENT_MAXARGS]
assert(prefInfo.fullscreenBtn)
static void Shutdown(void)
unsigned int formatspecIndex
static void RestoreTrace(idRestoreGame *savefile, trace_t &trace)
idLinkList< idEvent > eventNode
static void ClearEventList(void)
static idEventDef * eventDefList[MAX_EVENTS]
static int NumEventCommands(void)
const idTypeInfo * typeinfo
size_t GetArgSize(void) const
static const idEventDef * FindEvent(const char *name)
const char * GetName(void) const
static void Save(idSaveGame *savefile)
GLsizei GLsizei GLenum GLenum const GLvoid * data
idEventDef(const char *command, const char *formatspec=NULL, char returnType=0)
void Schedule(idClass *object, const idTypeInfo *cls, int time)
int GetEventNum(void) const
static const idEventDef * GetEventCommand(int eventnum)
unsigned int GetFormatspecIndex(void) const
int GetNumArgs(void) const
static idDynamicBlockAlloc< byte, 16 *1024, 256 > eventDataAllocator
const idEventDef * eventdef
const char * GetArgFormat(void) const
static void Restore(idRestoreGame *savefile)
static void ServiceEvents(void)
static void SaveTrace(idSaveGame *savefile, const trace_t &trace)
char GetReturnType(void) const
static void CopyArgs(const idEventDef *evdef, int numargs, va_list args, int data[D_EVENT_MAXARGS])
static idEvent * Alloc(const idEventDef *evdef, int numargs, va_list args)
static void CancelEvents(const idClass *obj, const idEventDef *evdef=NULL)
int GetArgOffset(int arg) const