2025-09-02 18:35:51 -07:00
|
|
|
#ifndef STORM_EVENT_HPP
|
|
|
|
|
#define STORM_EVENT_HPP
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
2025-10-05 20:27:01 -07:00
|
|
|
#include "Core.hpp"
|
2025-09-02 18:35:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef void (STORMAPI* SEVTHANDLER)(void*);
|
|
|
|
|
|
|
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtBreakHandlerChain(void* data);
|
2025-09-02 18:35:51 -07:00
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtDestroy();
|
2025-09-02 18:35:51 -07:00
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtDispatch(uint32_t type, uint32_t subtype, uint32_t id, void* data);
|
2025-09-02 18:35:51 -07:00
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtPopState(uint32_t type, uint32_t subtype);
|
2025-09-02 18:35:51 -07:00
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtPushState(uint32_t type, uint32_t subtype);
|
2025-09-02 18:35:51 -07:00
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtRegisterHandler(uint32_t type, uint32_t subtype, uint32_t id, uint32_t flags, SEVTHANDLER handler);
|
2025-09-02 18:35:51 -07:00
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtUnregisterHandler(uint32_t type, uint32_t subtype, uint32_t id, SEVTHANDLER handler);
|
2025-09-02 18:35:51 -07:00
|
|
|
|
2025-10-05 20:27:01 -07:00
|
|
|
int32_t STORMAPI SEvtUnregisterType(uint32_t type, uint32_t subtype);
|
2025-09-02 18:35:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|