From 6abcd7d52cda334c58ec999d212491fc24f13c9d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 May 2024 16:34:05 +0200 Subject: script lifecycle mostly implemented --- src/critter.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/critter.hpp') diff --git a/src/critter.hpp b/src/critter.hpp index 0ac56578..954499c3 100644 --- a/src/critter.hpp +++ b/src/critter.hpp @@ -44,6 +44,10 @@ struct critter final : object Vector2 ordinal_offset(Vector2b offset) const override; float depth_offset() const override; + void init_script(const std::shared_ptr& ptr) override; + void destroy_script_pre(const std::shared_ptr& ptr, script_destroy_reason r) override; + void destroy_script_post() override; + Script script; String name; float speed = 1; -- cgit v1.2.3