From 154e974a0d553ea8209c3be9b1bd5820fef5e0a3 Mon Sep 17 00:00:00 2001 From: max-001 Date: Tue, 5 Nov 2024 13:49:20 +0100 Subject: Implemented get_instances_max() at Transform component --- src/crepe/api/Transform.cpp | 5 +++++ src/crepe/api/Transform.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src/crepe') 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 -- cgit v1.2.3