From ebd163e3aacac74df1772d5bd794d2691918d324 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Fri, 25 Oct 2024 20:57:31 +0200 Subject: collision event added, multiple callbacks working, id trigger working --- mwe/events/src/event.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mwe/events/src/event.cpp') diff --git a/mwe/events/src/event.cpp b/mwe/events/src/event.cpp index fecae76..e4c046f 100644 --- a/mwe/events/src/event.cpp +++ b/mwe/events/src/event.cpp @@ -54,3 +54,13 @@ MousePressedEvent::MousePressedEvent(int mouseX, int mouseY) std::pair MousePressedEvent::getMousePosition() const { return {mouseX, mouseY}; } + +//Collision event +CollisionEvent::CollisionEvent(Collision collision) : collisionData(collision), Event("CollisionEvent") { + +} + +Collision CollisionEvent::getCollisionData() const +{ + return this->collisionData; +} -- cgit v1.2.3