4#include <entt/entt.hpp>
constexpr int INPUT_PRESS
Key was pressed this frame.
Definition Events.hpp:87
constexpr int INPUT_RELEASE
Key was released.
Definition Events.hpp:86
constexpr int INPUT_HOLD
Key is being held down.
Definition Events.hpp:88
TriggerAction
Represents the state of a trigger zone overlap.
Definition Events.hpp:52
@ ENTER
Entity just entered the trigger zone.
@ STAY
Entity is currently inside the trigger zone.
@ EXIT
Entity just left the trigger zone.
Fired when two solid physical bodies collide.
Definition Events.hpp:22
float force
Magnitude of the collision impulse.
Definition Events.hpp:26
entt::entity entityA
ID of the entity that initiated the contact.
Definition Events.hpp:23
CollideEvent()=default
Default constructor for line-by-line initialization.
entt::entity entityB
ID of the entity that was hit.
Definition Events.hpp:24
glm::vec2 normal
Collision normal vector (direction of the impact)
Definition Events.hpp:25
CollideEvent(entt::entity a, entt::entity b, glm::vec2 normal, float f)
Initializes a collision event with specific physics data.
Definition Events.hpp:44
Base marker class for all engine events.
Definition Events.hpp:10
virtual ~Event()=default
Virtual destructor to ensure proper polymorphic cleanup.
Fired when an entity overlaps with a non-solid trigger zone.
Definition Events.hpp:61
InterceptionEvent()=default
Default constructor for delayed initialization.
entt::entity entityA
ID of the physical entity (e.g., Player)
Definition Events.hpp:62
InterceptionEvent(entt::entity a, entt::entity b, TriggerAction act)
Initializes an interception event.
Definition Events.hpp:80
TriggerAction action
State of the intersection.
Definition Events.hpp:64
entt::entity entityB
ID of the non-solid trigger zone.
Definition Events.hpp:63
Fired when a built-in quest or script is triggered.
Definition Events.hpp:117
entt::entity entityID
ID of the entity that initiated the quest.
Definition Events.hpp:119
uint32_t questID
ID of the quest to be executed.
Definition Events.hpp:118
QuestStartEvent(uint32_t q, entt::entity e)
Initializes a quest start event.
Definition Events.hpp:134
QuestStartEvent()=default
Default constructor.