Function ecs_rule_iter

Synopsis

#include <include/flecs/addons/rules.h>

FLECS_API ecs_iter_t ecs_rule_iter(const ecs_world_t *world, const ecs_rule_t *rule)

Description

Iterate a rule. Note that rule iterators may allocate memory, and that unless the iterator is iterated until completion, it may still hold resources. When stopping iteration before ecs_rule_next has returned false, use ecs_iter_fini to cleanup any remaining resources.

Parameters

world - The world.

rule - The rule.

Returns
An iterator.

Mentioned in

Source

Line 154 in include/flecs/addons/rules.h.