aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-05 13:49:20 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-05 13:49:20 +0100
commit154e974a0d553ea8209c3be9b1bd5820fef5e0a3 (patch)
treecf48580fc4bf96fd7f833c15ead276a8682c8d3b /src/crepe
parent81d2a26f4f893648d6e549570d117e18e71beae8 (diff)
Implemented get_instances_max() at Transform component
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/api/Transform.cpp5
-rw-r--r--src/crepe/api/Transform.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/crepe/api/Transform.cpp b/src/crepe/api/Transform.cpp
index 2a36e67..64ad81c 100644
--- a/src/crepe/api/Transform.cpp
+++ b/src/crepe/api/Transform.cpp
@@ -13,4 +13,9 @@ Transform::Transform(uint32_t game_id, Point point, double rot,
: Component(game_id), position(point), rotation(rot), scale(scale) {
dbg_trace();
}
+
Transform::~Transform() { dbg_trace(); }
+
+int Transform::get_instances_max() const {
+ return 1;
+}
diff --git a/src/crepe/api/Transform.h b/src/crepe/api/Transform.h
index 5d45060..85e16b4 100644
--- a/src/crepe/api/Transform.h
+++ b/src/crepe/api/Transform.h
@@ -16,6 +16,7 @@ class Transform : public Component {
public:
Transform(uint32_t id, Point, double, double);
~Transform();
+ int get_instances_max() const;
//! Translation (shift)
Point position;
//! Rotation, in radians