Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Type that describes a reference to an entity or variable in a term. More...
#include <flecs.h>
Public Attributes | |
ecs_entity_t | id |
Entity id. | |
const char * | name |
Name. | |
Type that describes a reference to an entity or variable in a term.
ecs_entity_t ecs_term_ref_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.
const char* ecs_term_ref_t::name |
Name.
This can be either the variable name (when the EcsIsVariable flag is set) or an entity name. When ecs_term_t::move is true, the API assumes ownership over the string and will free it when the term is destroyed.