summaryrefslogtreecommitdiffhomepage
path: root/src/critter-script-empty.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
commit47b9691f9bde62ea62f6601503997d93ed7ab64c (patch)
treef0e08b4f37ced066ac18defdf233eec0e91b6cc0 /src/critter-script-empty.cpp
parent6aabc74a535da1f2d5cf866346b31939d097cbac (diff)
wa
Diffstat (limited to 'src/critter-script-empty.cpp')
-rw-r--r--src/critter-script-empty.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/critter-script-empty.cpp b/src/critter-script-empty.cpp
index 73a714ca..7c269aa4 100644
--- a/src/critter-script-empty.cpp
+++ b/src/critter-script-empty.cpp
@@ -10,9 +10,9 @@ struct empty_critter_script final : critter_script
StringView name() const override;
const void* id() const override;
- void on_init(const std::shared_ptr<critter>& c) override;
- void on_update(const std::shared_ptr<critter>& c, size_t& i, const Ns& dt) override;
- void on_destroy(const std::shared_ptr<critter>& c, script_destroy_reason reason) override;
+ void on_init(const bptr<critter>& c) override;
+ void on_update(const bptr<critter>& c, size_t& i, const Ns& dt) override;
+ void on_destroy(const bptr<critter>& c, script_destroy_reason reason) override;
void delete_self() noexcept override;
};
@@ -28,9 +28,9 @@ const void* empty_critter_script::id() const
return &script_name;
}
-void empty_critter_script::on_init(const std::shared_ptr<critter>&) {}
-void empty_critter_script::on_update(const std::shared_ptr<critter>&, size_t&, const Ns&) {}
-void empty_critter_script::on_destroy(const std::shared_ptr<critter>&, script_destroy_reason) {}
+void empty_critter_script::on_init(const bptr<critter>&) {}
+void empty_critter_script::on_update(const bptr<critter>&, size_t&, const Ns&) {}
+void empty_critter_script::on_destroy(const bptr<critter>&, script_destroy_reason) {}
void empty_critter_script::delete_self() noexcept { }
constinit empty_critter_script empty_script_ = {};