Struct ecs_term_set_t

Synopsis

#include <include/flecs.h>

typedef struct ecs_term_set_t

Description

Substitution with set parameters. These parameters allow for substituting a term id with its super- or subsets for a specified relationship. This enables functionality such as selecting components from a base (IsA) or a parent (ChildOf) in a single term

Source

Lines 230-235 in include/flecs.h.

typedef struct ecs_term_set_t {
    ecs_entity_t relation;      /* Relationship to substitute (default = IsA) */
    uint8_t mask;               /* Substitute as self, subset, superset */
    int32_t min_depth;          /* Min depth of subset/superset substitution */
    int32_t max_depth;          /* Max depth of subset/superset substitution */
} ecs_term_set_t;