45template <
typename... Comps,
typename... Args>
46inline observer_builder<Comps...>
world::observer(Args &&... args)
const {
flecs::observer observer(flecs::entity e) const
Observer builder.
ecs_entity_t ecs_observer_init(ecs_world_t *world, const ecs_observer_desc_t *desc)
Create observer.
const ecs_observer_t * ecs_observer_get(const ecs_world_t *world, ecs_entity_t observer)
Get observer object.
Used with ecs_observer_init().
ecs_entity_t entity
Existing entity to associate with observer (optional)
void * ctx
User context to pass to callback.
void * ctx
Observer context.