Function ecs_add_id

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_add_id(ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)

Description

Add an entity to an entity. This operation adds a single entity to the type of an entity. Type roles may be used in combination with the added entity. If the entity already has the entity, this operation will have no side effects.

Parameters

world - The world.

entity - The entity.

id - The id to add.

Mentioned in

Source

Line 1439 in include/flecs.h.