diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 09:43:13 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 09:43:13 +0100 |
commit | 502fb8e8d1dcfe10f55fdef2cdfb71afec806204 (patch) | |
tree | 8b967076cf0212f00d811e57264e3e0878c059c4 /src/crepe/api/Script.cpp | |
parent | da379a58033c0ef3c9c854326a3fca25d6e54319 (diff) |
pull script/event changes from `loek/collision-system`
Diffstat (limited to 'src/crepe/api/Script.cpp')
-rw-r--r-- | src/crepe/api/Script.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crepe/api/Script.cpp b/src/crepe/api/Script.cpp index 9ebb074..d3fae07 100644 --- a/src/crepe/api/Script.cpp +++ b/src/crepe/api/Script.cpp @@ -9,3 +9,9 @@ Script::~Script() { } } +template <> +void Script::subscribe(const EventHandler<CollisionEvent> & callback) { + const game_object_id_t & game_object_id = *this->game_object_id_ref; + this->subscribe_internal(callback, game_object_id); +} + |