Function ecs_table_get_index

Synopsis

#include <include/flecs.h>

FLECS_API int32_t ecs_table_get_index(const ecs_world_t *world, const ecs_table_t *table, ecs_id_t id)

Description

Get column index for id. This operation returns the index for an id in the table's type.

Parameters

world - The world.

table - The table.

id - The id.

Returns
The index of the id in the table type, or -1 if not found.

Source

Line 4770 in include/flecs.h.