diff options
Diffstat (limited to 'src/critter-script.hpp')
-rw-r--r-- | src/critter-script.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/critter-script.hpp b/src/critter-script.hpp index 2b81a939..9f81228b 100644 --- a/src/critter-script.hpp +++ b/src/critter-script.hpp @@ -1,6 +1,5 @@ #pragma once #include "script.hpp" -#include <memory> #include <cr/Pointer.h> namespace floormat { @@ -16,9 +15,9 @@ struct critter_script : base_script constexpr critter_script() noexcept = default; ~critter_script() noexcept override; - virtual void on_init(const std::shared_ptr<critter>& c) = 0; - virtual void on_update(const std::shared_ptr<critter>& c, size_t& i, const Ns& dt) = 0; - virtual void on_destroy(const std::shared_ptr<critter>& c, script_destroy_reason reason) = 0; + virtual void on_init(const bptr<critter>& c) = 0; + virtual void on_update(const bptr<critter>& c, size_t& i, const Ns& dt) = 0; + virtual void on_destroy(const bptr<critter>& c, script_destroy_reason reason) = 0; virtual void delete_self() = 0; object_type type() const override; |