diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 12:17:36 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 12:17:36 +0100 |
commit | dc5d46426b30303843e8746d514db6f55ce1495b (patch) | |
tree | 2b01a358b3daa4f55e54ca2c87f58becf83edeb8 /game/workers/CollisionScript.h | |
parent | 1a5744a3285a5ba5132fb4f6f031c27df1b64d33 (diff) | |
parent | c9c9702edc58ff8f40b13dc6b86b216421f79e9b (diff) |
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/enemyAI
Diffstat (limited to 'game/workers/CollisionScript.h')
-rw-r--r-- | game/workers/CollisionScript.h | 12 |
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); +}; |