From 73dea702bdedf48a2d2d26e7922b5ee935063cfd Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 22 Dec 2024 17:28:02 +0100 Subject: reset BehaviorScript to master --- src/crepe/api/BehaviorScript.cpp | 18 ------------------ src/crepe/api/BehaviorScript.h | 6 ------ src/crepe/api/BehaviorScript.hpp | 1 - 3 files changed, 25 deletions(-) diff --git a/src/crepe/api/BehaviorScript.cpp b/src/crepe/api/BehaviorScript.cpp index e1c06b0..af7572c 100644 --- a/src/crepe/api/BehaviorScript.cpp +++ b/src/crepe/api/BehaviorScript.cpp @@ -13,21 +13,3 @@ BehaviorScript & GameObject::add_component() { ComponentManager & mgr = this->mediator.component_manager; return mgr.add_component(this->id, this->mediator); } - -BehaviorScript::BehaviorScript(const BehaviorScript & other) : mediator(other.mediator), Component(other.game_object_id) { - Log::logf("COPY CONSTRUCTOR!!!"); -} - -BehaviorScript::BehaviorScript(BehaviorScript && other) : mediator(other.mediator), Component(other.game_object_id) { - Log::logf("MOVE CONSTRUCTOR!!!"); -} - -BehaviorScript & BehaviorScript::operator = (const BehaviorScript & other) { - Log::logf("COPY OPERATOR!!!"); - return *this; -} - -BehaviorScript & BehaviorScript::operator = (BehaviorScript && other) { - Log::logf("MOVE OPERATOR!!!"); - return *this; -} diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h index 52a7cbf..3909b96 100644 --- a/src/crepe/api/BehaviorScript.h +++ b/src/crepe/api/BehaviorScript.h @@ -33,11 +33,6 @@ protected: //! Only ComponentManager is allowed to instantiate BehaviorScript friend class ComponentManager; - BehaviorScript(const BehaviorScript &); - BehaviorScript(BehaviorScript &&); - BehaviorScript & operator = (const BehaviorScript &); - BehaviorScript & operator = (BehaviorScript &&); - public: /** * \brief Set the concrete script of this component @@ -53,7 +48,6 @@ public: BehaviorScript & set_script(Args &&... args); protected: - std::string name = "unknown script"; //! Script instance std::unique_ptr