From e6bc46a30152a7585dda24fde66622575349d25e Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Fri, 15 Nov 2024 15:05:19 +0100 Subject: added data struct for event --- src/crepe/api/Event.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/crepe/api/Event.h') diff --git a/src/crepe/api/Event.h b/src/crepe/api/Event.h index 701ecdf..3431f29 100644 --- a/src/crepe/api/Event.h +++ b/src/crepe/api/Event.h @@ -3,6 +3,7 @@ #include #include #include +#include "system/CollisionSystem.h" class Event { public: @@ -45,7 +46,10 @@ public: }; class CollisionEvent : public Event { public: - //Collision collisionData; + crepe::CollisionSystem::CollisionInfo info; + CollisionEvent(const crepe::CollisionSystem::CollisionInfo& collisionInfo) + : info(collisionInfo) {} + }; class TextSubmitEvent : public Event { public: -- cgit v1.2.3