24 ref() : m_world(
nullptr), m_ref{} { }
44 m_world, &m_ref, this->m_ref.id));
46 ecs_assert(result != NULL, ECS_INVALID_PARAMETER, NULL);
53 m_world, &m_ref, this->m_ref.id));
57 if (!m_world || !m_ref.entity) {
#define ecs_assert(condition, error_code,...)
Assert.
ecs_ref_t ecs_ref_init_id(const ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)
Create a component ref.
void * ecs_ref_get_id(const ecs_world_t *world, ecs_ref_t *ref, ecs_id_t id)
Get component from ref.
const ecs_world_t * ecs_get_world(const ecs_poly_t *poly)
Get world from poly.