aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/include/event.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-25 20:57:31 +0200
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-25 20:57:31 +0200
commitebd163e3aacac74df1772d5bd794d2691918d324 (patch)
tree7c71dfd6afa29a777018e5c804dff15c2a0f6ec2 /mwe/events/include/event.h
parentb5e83d076f356c6d01b7bbc1f033db4850356c0d (diff)
collision event added, multiple callbacks working, id trigger working
Diffstat (limited to 'mwe/events/include/event.h')
-rw-r--r--mwe/events/include/event.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/mwe/events/include/event.h b/mwe/events/include/event.h
index 802140c..d060faa 100644
--- a/mwe/events/include/event.h
+++ b/mwe/events/include/event.h
@@ -5,6 +5,7 @@
#include <unordered_map>
#include <variant>
#include "keyCodes.h"
+#include "customTypes.h"
class UUIDGenerator {
public:
@@ -85,3 +86,15 @@ private:
int mouseX = 0;
int mouseY = 0;
};
+class CollisionEvent : public Event {
+public:
+ CollisionEvent(Collision);
+
+ REGISTER_EVENT_TYPE(CollisionEvent)
+
+ Collision getCollisionData() const;
+
+private:
+ Collision collisionData;
+
+};