diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-15 15:05:19 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-15 15:05:19 +0100 |
commit | e6bc46a30152a7585dda24fde66622575349d25e (patch) | |
tree | 1d96d73bec54d14b2e4c9eaa3d01f73f294087f4 /src/crepe/api | |
parent | 37c016f1d5902cf7bbfed08d13ee2bc6ef725add (diff) |
added data struct for event
Diffstat (limited to 'src/crepe/api')
-rw-r--r-- | src/crepe/api/Event.h | 6 |
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: |