Function ecs_rule_find_var

Synopsis

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

FLECS_API int32_t ecs_rule_find_var(const ecs_rule_t *rule, const char *name)

Description

Find variable index. This operation looks up the index of a variable in the rule. This index can be used in operations like ecs_iter_set_var and ecs_iter_get_var.

Parameters

rule - The rule.

name - The variable name.

Returns
The variable index.

Mentioned in

Source

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