ecs_add_id

Function ecs_add_id 

Source
pub unsafe extern "C" fn ecs_add_id(
    world: *mut ecs_world_t,
    entity: ecs_entity_t,
    id: ecs_id_t,
)
Expand description

Add a (component) id to an entity. This operation adds a single (component) id to an entity. If the entity already has the id, this operation will have no side effects.

@param world The world. @param entity The entity. @param id The id to add.