#ifndef ComponentInfo_h__ #define ComponentInfo_h__ #include "../Common.h" struct ComponentInfo { struct Meta_t { std::string Annotation; unsigned int Allocation = 0; unsigned int Stride = 0; }; std::string Name; std::unordered_map FieldTypes; std::unordered_map FieldOffsets; Meta_t Meta; std::shared_ptr Defaults = nullptr; }; template<> struct std::hash { inline std::size_t operator()(const ComponentInfo& v) const { return std::hash()(v.Name); } }; #endif