diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-02 16:34:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-02 22:35:39 +0200 |
commit | 6abcd7d52cda334c58ec999d212491fc24f13c9d (patch) | |
tree | 86998508afe8eb7447ad70a2d5beebdbc9995a8f /src/critter.hpp | |
parent | 03b67a512ec9ef1cf5c337aa5c47a5a76d4a8a61 (diff) |
script lifecycle mostly implemented
Diffstat (limited to 'src/critter.hpp')
-rw-r--r-- | src/critter.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<object>& ptr) override; + void destroy_script_pre(const std::shared_ptr<object>& ptr, script_destroy_reason r) override; + void destroy_script_post() override; + Script<critter_script, critter> script; String name; float speed = 1; |