Function ecs_term_id

Synopsis

#include <include/flecs.h>

FLECS_API ecs_id_t ecs_term_id(const ecs_iter_t *it, int32_t index)

Description

Obtain the component/pair id for a term. This operation retrieves the id for the specified query term. Typically this is the component id, but it can also be a pair id or a role annotated id, depending on the term.

Parameters

it - The iterator.

index - The index of the term in the query.

Returns
The id associated with te term.

Source

Line 2482 in include/flecs.h.