aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe')
-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;