aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-05 11:56:39 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-05 11:56:39 +0100
commit8eac9296a487f5b77fc1cba269c70ee23f7603dc (patch)
tree5324659ad2e9a2032a67e3b0f4ebbfdaa5702d5c
parent6908eb456d408411156f9bde9425d7c2003cd506 (diff)
Added get_instances_max() method
-rw-r--r--src/crepe/Component.cpp4
-rw-r--r--src/crepe/Component.h1
2 files changed, 5 insertions, 0 deletions
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;