From 40d48773a393edadea97e501a4a47cd1746dadbe Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 15 Jun 2018 20:01:05 +0100 Subject: Adding components with test --- yage/entity/component.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 yage/entity/component.h (limited to 'yage/entity/component.h') 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 +class Component : public BaseComponent +{ +}; -- cgit