EnTTx v1.1.0
Changelog
-
config- Added macro
ENTTX_USER_ASSERTto mark specific assertions as user logic errors rather unexpected behaviour.
- Added macro
-
hierarchy- Added
hierarchy_configto customizebasic_hierarchyinstead of passing each config option as a template param. - Added
hierarchy_eventsfor signals on relationship operations. Can be disabled viahierarchy_config::enable_events = false. - Refactored to be cleaner and simpler to read (Moving iterator definitions out of
basic_hierarchy, etc).
- Added
-
prefab- Moved
remap_traitstoentity_remap.hpp. basic_prefab_registry::create_prefabnow accepts aroot_hint. Useful for loading a base prefab into the registry.- Added
rebuild_cachetobasic_prefab_registryfor loading new prefabs into an existing registry.
- Moved
-
entity_remap- Added
is_entity_remapperconcept as now a remapper is just a functor object with that takes in an entity and returns an entity. remapcan now accept any type that satisfies theis_entity_remapperconcept.basic_entity_remapnow usesentt::dense_mapinstead ofstd::unordered_map- Added
maptobasic_entity_remapto easily map an old entity to a new entity. - Removed
translateand replaced it withentity_type operator()(entity_type old)inbasic_entity_remapto satisfyis_entity_remapper.
- Added
-
tests- Updated tests to match the new api's.
Full Changelog: v1.0.0...v1.1.0