50 #define orxEVENT_INIT(EVENT, TYPE, ID, SENDER, RECIPIENT, PAYLOAD) \ 53 EVENT.eType = (orxEVENT_TYPE)(TYPE); \ 54 EVENT.eID = (orxENUM)(ID); \ 55 EVENT.hSender = (orxHANDLE)(SENDER); \ 56 EVENT.hRecipient = (orxHANDLE)(RECIPIENT); \ 57 EVENT.pstPayload = (void *)(PAYLOAD); \ 60 #define orxEVENT_SEND(TYPE, ID, SENDER, RECIPIENT, PAYLOAD) \ 64 orxEVENT_INIT(stEvent, TYPE, ID, SENDER, RECIPIENT, PAYLOAD); \ 65 orxEvent_Send(&stEvent); \ 68 #define orxEVENT_GET_FLAG(ID) ((orxU32)(1U << (orxU32)(ID))) 69 #define orxEVENT_KU32_FLAG_ID_NONE 0x00000000 70 #define orxEVENT_KU32_MASK_ID_ALL 0xFFFFFFFF 75 typedef enum __orxEVENT_TYPE_t
110 typedef struct __orxEVENT_t
orxDLLAPI void orxFASTCALL orxEvent_Setup()
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_RemoveHandler(orxEVENT_TYPE _eEventType, orxEVENT_HANDLER _pfnEventHandler)
orxDLLAPI orxBOOL orxFASTCALL orxEvent_IsSending()
orxDLLAPI void orxFASTCALL orxEvent_Exit()
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_Send(orxEVENT *_pstEvent)
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_AddHandler(orxEVENT_TYPE _eEventType, orxEVENT_HANDLER _pfnEventHandler)
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_SendShort(orxEVENT_TYPE _eEventType, orxENUM _eEventID)
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_RemoveHandlerWithContext(orxEVENT_TYPE _eEventType, orxEVENT_HANDLER _pfnEventHandler, void *_pContext)
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_SetHandlerIDFlags(orxEVENT_HANDLER _pfnEventHandler, orxEVENT_TYPE _eEventType, void *_pContext, orxU32 _u32AddIDFlags, orxU32 _u32RemoveIDFlags)
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_Init()
orxDLLAPI orxSTATUS orxFASTCALL orxEvent_AddHandlerWithContext(orxEVENT_TYPE _eEventType, orxEVENT_HANDLER _pfnEventHandler, void *_pContext)
orxSTATUS(orxFASTCALL * orxEVENT_HANDLER)(const orxEVENT *_pstEvent)