Implemented ComponentPool and initial tests for it

This commit is contained in:
sippeangelo
2015-12-02 15:07:48 +01:00
parent 8aa72735e7
commit b3e68c6c34
8 changed files with 212 additions and 21 deletions
+9 -2
View File
@@ -1,3 +1,6 @@
#ifndef ComponentInfo_h__
#define ComponentInfo_h__
#include "../Common.h"
struct ComponentInfo
@@ -5,11 +8,15 @@ struct ComponentInfo
struct Meta_t
{
std::string Annotation;
int Allocation = 0;
unsigned int Allocation = 0;
unsigned int Stride = 0;
};
std::string Name;
std::unordered_map<std::string, std::string> FieldTypes;
std::unordered_map<std::string, unsigned int> FieldOffsets;
Meta_t Meta;
};
std::shared_ptr<char*> Defaults = nullptr;
};
#endif