aboutsummaryrefslogtreecommitdiffstats
path: root/yage/entity/component.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yage/entity/component.cpp')
-rw-r--r--yage/entity/component.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/yage/entity/component.cpp b/yage/entity/component.cpp
new file mode 100644
index 00000000..83fe4424
--- /dev/null
+++ b/yage/entity/component.cpp
@@ -0,0 +1,6 @@
+#include "component.h"
+
+GroupId BaseComponent::getGroup() {
+ static GroupId group_id = group_id_counter_++;
+ return group_id;
+}