浏览代码

Lesson 10.4

Godzil 3 年之前
父节点
当前提交
ca9c682daa
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      source/include/ECS.h

+ 5 - 0
source/include/ECS.h

@@ -14,6 +14,8 @@
 
 #include <bitset>
 #include <vector>
+#include <unordered_map>
+#include <typeindex>
 
 #include <Pool.h>
 
@@ -85,6 +87,9 @@ private:
     uint32_t numEntities = 0;
 
     std::vector<IPool*> componentPools;
+    std::vector<Signature> entityComponentSignatures;
+
+    std::unordered_map<std::type_index, System*> systems;
 
 public:
     Registry() = default;