Skip to content

EnTTx v1.1.0

Choose a tag to compare

@AsherFarag AsherFarag released this 13 Aug 07:14
· 31 commits to main since this release

Changelog

  • config

    • Added macro ENTTX_USER_ASSERT to mark specific assertions as user logic errors rather unexpected behaviour.
  • hierarchy

    • Added hierarchy_config to customize basic_hierarchy instead of passing each config option as a template param.
    • Added hierarchy_events for signals on relationship operations. Can be disabled via hierarchy_config::enable_events = false.
    • Refactored to be cleaner and simpler to read (Moving iterator definitions out of basic_hierarchy, etc).
  • prefab

    • Moved remap_traits to entity_remap.hpp.
    • basic_prefab_registry::create_prefab now accepts a root_hint. Useful for loading a base prefab into the registry.
    • Added rebuild_cache to basic_prefab_registry for loading new prefabs into an existing registry.
  • entity_remap

    • Added is_entity_remapper concept as now a remapper is just a functor object with that takes in an entity and returns an entity.
    • remap can now accept any type that satisfies the is_entity_remapper concept.
    • basic_entity_remap now uses entt::dense_map instead of std::unordered_map
    • Added map to basic_entity_remap to easily map an old entity to a new entity.
    • Removed translate and replaced it with entity_type operator()(entity_type old) in basic_entity_remap to satisfy is_entity_remapper .
  • tests

    • Updated tests to match the new api's.

Full Changelog: v1.0.0...v1.1.0