Flecs v3.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
ecs_term_id_t Struct Reference

Type that describes a single identifier in a term. More...

#include <flecs.h>

Public Attributes

ecs_entity_t id
 Entity id. More...
 
char * name
 Name. More...
 
ecs_entity_t trav
 Relationship to traverse when looking for the component. More...
 
ecs_flags32_t flags
 Term flags. More...
 

Detailed Description

Type that describes a single identifier in a term.

Definition at line 507 of file flecs.h.

Member Data Documentation

◆ flags

ecs_flags32_t ecs_term_id_t::flags

Term flags.

Definition at line 525 of file flecs.h.

◆ id

ecs_entity_t ecs_term_id_t::id

Entity id.

If left to 0 and flags does not specify whether id is an entity or a variable the id will be initialized to EcsThis. To explicitly set the id to 0, leave the id member to 0 and set EcsIsEntity in flags.

Definition at line 508 of file flecs.h.

◆ name

char* ecs_term_id_t::name

Name.

This can be either the variable name (when the EcsIsVariable flag is set) or an entity name. Entity names are used to initialize the id member during term finalization and will be freed when term.move is set to true.

Definition at line 514 of file flecs.h.

◆ trav

ecs_entity_t ecs_term_id_t::trav

Relationship to traverse when looking for the component.

The relationship must have the Traversable property. Default is IsA.

Definition at line 521 of file flecs.h.


The documentation for this struct was generated from the following file: