Flecs v4.0
A fast entity component system (ECS) for C & C++
|
An observer reacts to events matching a query. More...
#include <flecs.h>
Public Attributes | |
ecs_header_t | hdr |
Object header. | |
ecs_query_t * | query |
Observer query. | |
ecs_entity_t | events [(8)] |
Observer events. | |
int32_t | event_count |
Number of events. | |
ecs_iter_action_t | callback |
See ecs_observer_desc_t::callback. | |
ecs_run_action_t | run |
See ecs_observer_desc_t::run. | |
void * | ctx |
Observer context. | |
void * | callback_ctx |
Callback language binding context. | |
void * | run_ctx |
Run language binding context. | |
ecs_ctx_free_t | ctx_free |
Callback to free ctx. | |
ecs_ctx_free_t | callback_ctx_free |
Callback to free callback_ctx. | |
ecs_ctx_free_t | run_ctx_free |
Callback to free run_ctx. | |
ecs_observable_t * | observable |
Observable for observer. | |
ecs_world_t * | world |
The world. | |
ecs_entity_t | entity |
Entity associated with observer. | |
An observer reacts to events matching a query.
Created with ecs_observer_init().
ecs_iter_action_t ecs_observer_t::callback |
void* ecs_observer_t::callback_ctx |
ecs_ctx_free_t ecs_observer_t::callback_ctx_free |
ecs_ctx_free_t ecs_observer_t::ctx_free |
ecs_entity_t ecs_observer_t::entity |
ecs_entity_t ecs_observer_t::events[(8)] |
ecs_header_t ecs_observer_t::hdr |
ecs_observable_t* ecs_observer_t::observable |
ecs_query_t* ecs_observer_t::query |
ecs_run_action_t ecs_observer_t::run |
ecs_ctx_free_t ecs_observer_t::run_ctx_free |
ecs_world_t* ecs_observer_t::world |