Skip to content

Commit

Permalink
Fixing bad memory handling in ECS #49.
Browse files Browse the repository at this point in the history
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
MStachowicz committed Apr 2, 2023
1 parent 1fd3c1e commit 25ce7ee
Showing 1 changed file with 148 additions and 94 deletions.
Loading

0 comments on commit 25ce7ee

Please sign in to comment.