#[repr(C)]pub struct ecs_bulk_desc_t {
pub _canary: i32,
pub entities: *mut u64,
pub count: i32,
pub ids: [u64; 32],
pub data: *mut *mut c_void,
pub table: *mut ecs_table_t,
}Expand description
Used with ecs_bulk_init
\ingroup entities
Fields§
§_canary: i32§entities: *mut u64< 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.
count: i32< Number of entities to create/populate
ids: [u64; 32]< Ids to create the entities with
data: *mut *mut c_void< 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.
table: *mut ecs_table_t< 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.
Trait Implementations§
Source§impl Clone for ecs_bulk_desc_t
impl Clone for ecs_bulk_desc_t
Source§fn clone(&self) -> ecs_bulk_desc_t
fn clone(&self) -> ecs_bulk_desc_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more