Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bad memory handling in ECS #49.
Renamed mBuffer to mData and changed the data type from std::vector<Byte> to std::byte*. Added m_capacity initialised to 16 instances of the archetype at construction. Renamed Destructor to MemberFuncs and added a MoveAssign and MoveConstruct function pointer. Replaced usages of typedef with using. Fixed Archetype::push_back to now call move-constructors for the ComponentTypes. Fixed Archetype::erase to now call move-assignment operator when re-positioning Components in non-end erase. Added Archetype::reserve(Capacity).
- Loading branch information