Function ecs_observer_default_run_action

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_observer_default_run_action(ecs_iter_t *it)

Description

Default run action for observer. This function can be called from a custom observer run action (see ecs_observer_desc_t::run for more details). This function ensures that the observer's filter is applied to the iterator's table, filters out duplicate events and implements EcsMonitor logic.

Parameters

it - The iterator.

Returns
True if the observer was invoked.

Source

Line 3618 in include/flecs.h.