13 using U =
typename std::underlying_type<E>::type;
14 const E* ptr =
static_cast<const E*
>(
ecs_get_id(world_, id_,
16 ecs_assert(ptr != NULL, ECS_INVALID_PARAMETER,
"entity is not a constant");
20 "operation not supported without FLECS_META addon");
25template <typename E, if_t< is_enum<E>::value >>
27 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.
const void * ecs_get_id(const ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)
Get an immutable pointer to a component.