aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-16 13:21:53 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-16 13:21:53 +0100
commit572741fc845f430d225a4611a94aae7a2a544d12 (patch)
treedacc9296db5a570bbe12fe7cbc494732dc86dcd4 /src
parentfdd5c471dffd4a204a91e8d1d70567fa56ea29a5 (diff)
final touchups for #26
Diffstat (limited to 'src')
-rw-r--r--src/crepe/Collider.cpp2
-rw-r--r--src/crepe/Collider.h2
-rw-r--r--src/crepe/api/BehaviorScript.h3
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
@@ -26,9 +26,6 @@ protected:
friend class ComponentManager;
public:
- ~BehaviorScript() = default;
-
-public:
/**
* \brief Set the concrete script of this component
*