Rules API addon

Functions

ecs_rule_find_varFind variable index
ecs_rule_finiDelete a rule.
ecs_rule_get_filterObtain filter from rule
ecs_rule_initCreate a rule
ecs_rule_iterIterate a rule
ecs_rule_nextProgress rule iterator.
ecs_rule_next_instancedProgress instanced iterator
ecs_rule_strConvert rule to a string
ecs_rule_var_countReturn number of variables in rule.
ecs_rule_var_is_entityTest if variable is an entity
ecs_rule_var_nameGet variable name

Defines

Defines (rules.h)

ecs_rule(world,...)
ecs_rule_init(world, &(ecs_filter_desc_t) __VA_ARGS__ )

Convenience macro for rule creation

Mentioned in:

Query Manual / Rules

Query Manual / Query Descriptor (C)

Query Manual / Query Descriptor (C)

Query Manual / Query Descriptor (C)

Query Manual / Query Descriptor (C)