Implemented ComponentPool and initial tests for it
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user