From 8eac9296a487f5b77fc1cba269c70ee23f7603dc Mon Sep 17 00:00:00 2001 From: max-001 Date: Tue, 5 Nov 2024 11:56:39 +0100 Subject: Added get_instances_max() method --- src/crepe/Component.cpp | 4 ++++ src/crepe/Component.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/crepe/Component.cpp b/src/crepe/Component.cpp index 358ce31..25c6947 100644 --- a/src/crepe/Component.cpp +++ b/src/crepe/Component.cpp @@ -3,3 +3,7 @@ using namespace crepe; Component::Component(uint32_t id) : game_object_id(id), active(true) {} + +int Component::get_instances_max() const { + return -1; +} diff --git a/src/crepe/Component.h b/src/crepe/Component.h index bc44865..039836e 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -13,6 +13,7 @@ protected: public: virtual ~Component() = default; + virtual int get_instances_max() const; public: uint32_t game_object_id; -- cgit v1.2.3