#include <include/flecs.h> FLECS_API void ecs_add_id(ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)
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.
world- The world.
entity- The entity.
id- The id to add.