Basic and working entity system with a really ugly test case
This commit is contained in:
@@ -16,7 +16,16 @@ struct ComponentInfo
|
||||
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;
|
||||
std::shared_ptr<char> Defaults = nullptr;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct std::hash<ComponentInfo>
|
||||
{
|
||||
inline std::size_t operator()(const ComponentInfo& v) const
|
||||
{
|
||||
return std::hash<std::string>()(v.Name);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user