From 572741fc845f430d225a4611a94aae7a2a544d12 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 16 Nov 2024 13:21:53 +0100 Subject: final touchups for #26 --- src/crepe/Collider.cpp | 2 ++ src/crepe/Collider.h | 2 +- src/crepe/api/BehaviorScript.h | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/crepe/Collider.cpp b/src/crepe/Collider.cpp index 113ba61..bbec488 100644 --- a/src/crepe/Collider.cpp +++ b/src/crepe/Collider.cpp @@ -1,3 +1,5 @@ #include "Collider.h" using namespace crepe; + +Collider::Collider(game_object_id_t id) : Component(id) {} diff --git a/src/crepe/Collider.h b/src/crepe/Collider.h index a1e9095..827f83d 100644 --- a/src/crepe/Collider.h +++ b/src/crepe/Collider.h @@ -6,7 +6,7 @@ namespace crepe { class Collider : public Component { public: - using Component::Component; + Collider(game_object_id_t id); int size; }; diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h index 1a8910d..f7d484a 100644 --- a/src/crepe/api/BehaviorScript.h +++ b/src/crepe/api/BehaviorScript.h @@ -25,9 +25,6 @@ protected: //! Only ComponentManager is allowed to instantiate BehaviorScript friend class ComponentManager; -public: - ~BehaviorScript() = default; - public: /** * \brief Set the concrete script of this component -- cgit v1.2.3