12 const E* ptr = this->get<E>();
13 ecs_assert(ptr != NULL, ECS_INVALID_PARAMETER,
"entity is not a constant");
17template <typename E, if_t< is_enum<E>::value >>
19 const auto& et = enum_type<E>(world_);
#define ecs_assert(condition, error_code,...)
Assert.
E to_constant() const
Convert entity to enum constant.
flecs::entity to_entity(E constant) const
Convert enum constant to entity.