Function ecs_new_component_id

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_new_component_id(ecs_world_t *world)

Description

Create new component id. This operation returns a new component id. Component ids are the same as entity ids, but can make use of the [1 .. ECS_HI_COMPONENT_ID] range.

This operation does not recycle ids.

Parameters

world - The world.

Returns
The new component id.

Source

Line 823 in include/flecs.h.