aboutsummaryrefslogtreecommitdiff
path: root/game/workers/CollisionScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/workers/CollisionScript.h')
-rw-r--r--game/workers/CollisionScript.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/game/workers/CollisionScript.h b/game/workers/CollisionScript.h
new file mode 100644
index 0000000..70c5fe1
--- /dev/null
+++ b/game/workers/CollisionScript.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <crepe/api/Event.h>
+#include <crepe/api/Script.h>
+
+class CollisionScript : public crepe::Script {
+public:
+ void init();
+
+private:
+ bool on_collision(const crepe::CollisionEvent & ev);
+};