Flecs v3.2
A fast entity component system (ECS) for C & C++
No Matches
ecs_bulk_desc_t Struct Reference

Used with ecs_bulk_init(). More...

#include <flecs.h>

Public Attributes

int32_t _canary
 Entities to bulk insert.
int32_t count
 Number of entities to create/populate.
ecs_id_t ids [(32)]
 Ids to create the entities with.
void ** data
 Array with component data to insert.
 Table to insert the entities into.

Detailed Description

Used with ecs_bulk_init().

Definition at line 954 of file flecs.h.

Member Data Documentation

◆ _canary

int32_t ecs_bulk_desc_t::_canary

Definition at line 955 of file flecs.h.

◆ count

int32_t ecs_bulk_desc_t::count

Number of entities to create/populate.

Definition at line 962 of file flecs.h.

◆ data

void** ecs_bulk_desc_t::data

Array with component data to insert.

Each element in the array must correspond with an element in the ids array. If an element in the ids array is a tag, the data array must contain a NULL. An element may be set to NULL for a component, in which case the component will not be set by the operation.

Definition at line 966 of file flecs.h.

◆ entities

ecs_entity_t* ecs_bulk_desc_t::entities

Entities to bulk insert.

Entity ids provided by the application must be empty (cannot have components). If no entity ids are provided, the operation will create 'count' new entities.

Definition at line 957 of file flecs.h.

◆ ids

ecs_id_t ecs_bulk_desc_t::ids[(32)]

Ids to create the entities with.

Definition at line 964 of file flecs.h.

◆ table

ecs_table_t* ecs_bulk_desc_t::table

Table to insert the entities into.

Should not be set at the same time as ids. When 'table' is set at the same time as 'data', the elements in the data array must correspond with the ids in the table's type.

Definition at line 973 of file flecs.h.

The documentation for this struct was generated from the following file: