Function ecs_observer_init

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_observer_init(ecs_world_t *world, const ecs_observer_desc_t *desc)

Description

Create observer. Observers are like triggers, but can subscribe for multiple terms. An observer only triggers when the source of the event meets all terms.

See the documentation for ecs_observer_desc_t for more details.

Parameters

world - The world.

desc - The observer creation parameters.

Mentioned in

Source

Line 2879 in include/flecs.h.