aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Event.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-15 15:05:19 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-15 15:05:19 +0100
commite6bc46a30152a7585dda24fde66622575349d25e (patch)
tree1d96d73bec54d14b2e4c9eaa3d01f73f294087f4 /src/crepe/api/Event.h
parent37c016f1d5902cf7bbfed08d13ee2bc6ef725add (diff)
added data struct for event
Diffstat (limited to 'src/crepe/api/Event.h')
-rw-r--r--src/crepe/api/Event.h6
1 files changed, 5 insertions, 1 deletions
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 <iostream>
#include <string>
#include <typeindex>
+#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: