Function ecs_bulk_new_w_id

Synopsis

#include <include/flecs.h>

FLECS_API const ecs_entity_t * ecs_bulk_new_w_id(ecs_world_t *world, ecs_id_t id, int32_t count)

Description

Create a new entity. This operation creates a new entity with a single component in its type. This operation accepts variables created with ECS_COMPONENT, ECS_TYPE and ECS_TAG. This operation recycles ids.

Parameters

world - The world.

component - The component.

Returns
The new entity. Create N new entities. This operation is the same as ecs_new_w_id, but creates N entities instead of one and does not recycle ids.
Parameters

world - The world.

entity - The entity.

count - The number of entities to create.

Returns
The first entity id of the newly created entities.

Source

Line 862 in include/flecs.h.