mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Original Source for 1.13 Mod High Resolution version from 12/06/05
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#ifndef __EVENT_MANAGER_H
|
||||
#define __EVENT_MANAGER_H
|
||||
|
||||
typedef struct
|
||||
{
|
||||
TIMER TimeStamp;
|
||||
UINT32 uiFlags;
|
||||
UINT16 usDelay;
|
||||
UINT32 uiEvent;
|
||||
UINT32 uiDataSize;
|
||||
BYTE *pData;
|
||||
|
||||
} EVENT;
|
||||
|
||||
#define PRIMARY_EVENT_QUEUE 0
|
||||
#define SECONDARY_EVENT_QUEUE 1
|
||||
#define DEMAND_EVENT_QUEUE 2
|
||||
|
||||
#define EVENT_EXPIRED 0x00000002
|
||||
|
||||
// Management fucntions
|
||||
BOOLEAN InitializeEventManager( );
|
||||
BOOLEAN ShutdownEventManager( );
|
||||
|
||||
BOOLEAN AddEvent( UINT32 uiEvent, UINT16 usDelay, PTR pEventData, UINT32 uiDataSize, UINT8 ubQueueID );
|
||||
BOOLEAN RemoveEvent( EVENT **ppEvent, UINT32 uiIndex , UINT8 ubQueueID );
|
||||
BOOLEAN PeekEvent( EVENT **ppEvent, UINT32 uiIndex , UINT8 ubQueueID );
|
||||
BOOLEAN FreeEvent( EVENT *pEvent );
|
||||
UINT32 EventQueueSize( UINT8 ubQueueID );
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user