aboutsummaryrefslogtreecommitdiffstats
path: root/yage/entity/component.h
diff options
context:
space:
mode:
Diffstat (limited to 'yage/entity/component.h')
-rw-r--r--yage/entity/component.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/yage/entity/component.h b/yage/entity/component.h
new file mode 100644
index 00000000..84eb8b54
--- /dev/null
+++ b/yage/entity/component.h
@@ -0,0 +1,17 @@
+typedef unsigned int GroupId;
+
+class BaseComponent
+{
+protected:
+ GroupId getGroup();
+
+private:
+ friend class EntityManager;
+
+ static GroupId group_id_counter_;
+};
+
+template <typename T>
+class Component : public BaseComponent
+{
+};