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

Public Attributes

ecs_header_t hdr
 
ecs_filter_t filter
 Query for observer. More...
 
ecs_entity_t events [(8)]
 
int32_t event_count
 
ecs_iter_action_t callback
 See ecs_observer_desc_t::callback. More...
 
ecs_run_action_t run
 See ecs_observer_desc_t::run. More...
 
void * ctx
 Callback context. More...
 
void * binding_ctx
 Binding context (for language bindings) More...
 
ecs_ctx_free_t ctx_free
 Callback to free ctx. More...
 
ecs_ctx_free_t binding_ctx_free
 Callback to free binding_ctx. More...
 
ecs_observable_tobservable
 Observable for observer. More...
 
int32_t * last_event_id
 Last handled event id. More...
 
int32_t last_event_id_storage
 
ecs_id_t register_id
 Id observer is registered with (single term observers only) More...
 
int32_t term_index
 Index of the term in parent observer (single term observers only) More...
 
bool is_monitor
 If true, the observer only triggers when the filter did not match with the entity before the event happened. More...
 
bool is_multi
 If true, the observer triggers on more than one term. More...
 
ecs_poly_dtor_t dtor
 

Detailed Description

Definition at line 768 of file flecs.h.

Member Data Documentation

◆ binding_ctx

void* ecs_observer_t::binding_ctx

Binding context (for language bindings)

Definition at line 781 of file flecs.h.

◆ binding_ctx_free

ecs_ctx_free_t ecs_observer_t::binding_ctx_free

Callback to free binding_ctx.

Definition at line 784 of file flecs.h.

◆ callback

ecs_iter_action_t ecs_observer_t::callback

See ecs_observer_desc_t::callback.

Definition at line 777 of file flecs.h.

◆ ctx

void* ecs_observer_t::ctx

Callback context.

Definition at line 780 of file flecs.h.

◆ ctx_free

ecs_ctx_free_t ecs_observer_t::ctx_free

Callback to free ctx.

Definition at line 783 of file flecs.h.

◆ dtor

ecs_poly_dtor_t ecs_observer_t::dtor

Definition at line 801 of file flecs.h.

◆ event_count

int32_t ecs_observer_t::event_count

Definition at line 775 of file flecs.h.

◆ events

ecs_entity_t ecs_observer_t::events[(8)]

Definition at line 774 of file flecs.h.

◆ filter

ecs_filter_t ecs_observer_t::filter

Query for observer.

Definition at line 771 of file flecs.h.

◆ hdr

ecs_header_t ecs_observer_t::hdr

Definition at line 769 of file flecs.h.

◆ is_monitor

bool ecs_observer_t::is_monitor

If true, the observer only triggers when the filter did not match with the entity before the event happened.

Definition at line 794 of file flecs.h.

◆ is_multi

bool ecs_observer_t::is_multi

If true, the observer triggers on more than one term.

Definition at line 798 of file flecs.h.

◆ last_event_id

int32_t* ecs_observer_t::last_event_id

Last handled event id.

Definition at line 788 of file flecs.h.

◆ last_event_id_storage

int32_t ecs_observer_t::last_event_id_storage

Definition at line 789 of file flecs.h.

◆ observable

ecs_observable_t* ecs_observer_t::observable

Observable for observer.

Definition at line 786 of file flecs.h.

◆ register_id

ecs_id_t ecs_observer_t::register_id

Id observer is registered with (single term observers only)

Definition at line 791 of file flecs.h.

◆ run

ecs_run_action_t ecs_observer_t::run

See ecs_observer_desc_t::run.

Definition at line 778 of file flecs.h.

◆ term_index

int32_t ecs_observer_t::term_index

Index of the term in parent observer (single term observers only)

Definition at line 792 of file flecs.h.


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