#[repr(C)]pub struct ecs_iter_t {Show 41 fields
pub world: *mut ecs_world_t,
pub real_world: *mut ecs_world_t,
pub entities: *mut ecs_entity_t,
pub ptrs: *mut *mut c_void,
pub sizes: *mut ecs_size_t,
pub table: *mut ecs_table_t,
pub other_table: *mut ecs_table_t,
pub ids: *mut ecs_id_t,
pub variables: *mut ecs_var_t,
pub columns: *mut i32,
pub sources: *mut ecs_entity_t,
pub match_indices: *mut i32,
pub references: *mut ecs_ref_t,
pub constrained_vars: ecs_flags64_t,
pub group_id: u64,
pub field_count: i32,
pub system: ecs_entity_t,
pub event: ecs_entity_t,
pub event_id: ecs_id_t,
pub terms: *mut ecs_term_t,
pub table_count: i32,
pub term_index: i32,
pub variable_count: i32,
pub variable_names: *mut *mut c_char,
pub param: *mut c_void,
pub ctx: *mut c_void,
pub binding_ctx: *mut c_void,
pub delta_time: f32,
pub delta_system_time: f32,
pub frame_offset: i32,
pub offset: i32,
pub count: i32,
pub instance_count: i32,
pub flags: ecs_flags32_t,
pub interrupted_by: ecs_entity_t,
pub priv_: ecs_iter_private_t,
pub next: ecs_iter_next_action_t,
pub callback: ecs_iter_action_t,
pub set_var: ecs_iter_action_t,
pub fini: ecs_iter_fini_action_t,
pub chain_it: *mut ecs_iter_t,
}Expand description
Iterator
Fields§
§world: *mut ecs_world_tThe world
real_world: *mut ecs_world_tActual world. This differs from world when in readonly mode
entities: *mut ecs_entity_tEntity identifiers
ptrs: *mut *mut c_voidPointers to components. Array if from this, pointer if not.
sizes: *mut ecs_size_tComponent sizes
table: *mut ecs_table_tCurrent table
other_table: *mut ecs_table_tPrev or next table when adding/removing
ids: *mut ecs_id_t(Component) ids
variables: *mut ecs_var_tValues of variables (if any)
columns: *mut i32Query term to table column mapping
sources: *mut ecs_entity_tEntity on which the id was matched (0 if same as entities)
match_indices: *mut i32Indices of current match for term. Allows an iterator to iterate all permutations of wildcards in query.
references: *mut ecs_ref_tCached refs to components (if iterating a cache)
constrained_vars: ecs_flags64_tBitset that marks constrained variables
group_id: u64Group id for table, if group_by is used
field_count: i32Number of fields in iterator
system: ecs_entity_tThe system (if applicable)
event: ecs_entity_tThe event (if applicable)
event_id: ecs_id_tThe (component) id for the event
terms: *mut ecs_term_tTerms of query being evaluated
table_count: i32Active table count for query
term_index: i32Index of term that emitted an event. This field will be set to the ‘index’ field of an observer term.
variable_count: i32Number of variables for query
variable_names: *mut *mut c_charNames of variables (if any)
param: *mut c_voidParam passed to ecs_run
ctx: *mut c_voidSystem context
binding_ctx: *mut c_voidBinding context
delta_time: f32Time elapsed since last frame
delta_system_time: f32Time elapsed since last system invocation
frame_offset: i32Offset relative to start of iteration
offset: i32Offset relative to current table
count: i32Number of entities to iterate
instance_count: i32Number of entities to iterate before next table
flags: ecs_flags32_tIterator flags
interrupted_by: ecs_entity_tWhen set, system execution is interrupted
priv_: ecs_iter_private_tPrivate data
next: ecs_iter_next_action_tFunction to progress iterator
callback: ecs_iter_action_tCallback of system or observer
set_var: ecs_iter_action_tInvoked after setting variable (optionally set)
fini: ecs_iter_fini_action_tFunction to cleanup iterator resources
chain_it: *mut ecs_iter_tOptional, allows for creating iterator chains
Trait Implementations§
Source§impl Clone for ecs_iter_t
impl Clone for ecs_iter_t
Source§fn clone(&self) -> ecs_iter_t
fn clone(&self) -> ecs_iter_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more