]> git.seodisparate.com - EntityComponentMetaSystem/commit
Add ability to handle unknown types
authorStephen Seo <seo.disparate@gmail.com>
Thu, 17 May 2018 08:05:49 +0000 (17:05 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 17 May 2018 08:05:49 +0000 (17:05 +0900)
commitd12af4d5272b982393395836202d4e838d151cf6
treea082da606e7fba41b4403cd680896434b8d9fa85
parent1e1344cdaec91b36c15752685e280a2f36ae7f4b
Add ability to handle unknown types

EC/Manager and EC/Bitset can now handle types that are not known
(Components or Tags not in the given Components or Tags when created).

Manager::getEntityData now returns a pointer instead of a reference.
Functions passed to Manager::forMatchingFunction (and other similar fns)
should now accept Component fields as pointer types, not reference
types.
src/EC/Bitset.hpp
src/EC/Manager.hpp
src/EC/Meta/IndexOf.hpp
src/test/ECTest.cpp
src/test/MetaTest.cpp