![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Traits that enforce constraints on entities, components and relationships. More...
Variables | |
| FLECS_API const ecs_entity_t | EcsFinal |
Ensure that an entity or component cannot be used as a target in an IsA relationship. | |
| FLECS_API const ecs_entity_t | EcsSymmetric |
| Mark relationship as commutative. | |
| FLECS_API const ecs_entity_t | EcsAcyclic |
| Mark a relationship as acyclic. | |
| FLECS_API const ecs_entity_t | EcsOneOf |
| Ensure that a relationship target is a child of the specified entity. | |
| FLECS_API const ecs_entity_t | EcsTrait |
| Can be added to components to indicate it is a trait. | |
| FLECS_API const ecs_entity_t | EcsRelationship |
| Ensure that an entity is always used in a pair as a relationship. | |
| FLECS_API const ecs_entity_t | EcsTarget |
| Ensure that an entity is always used in a pair as a target. | |
| FLECS_API const ecs_entity_t | EcsSingleton |
| Mark component as singleton. | |
Traits that enforce constraints on entities, components and relationships.
|
extern |
Mark a relationship as acyclic.
Acyclic relationships may not form cycles.
|
extern |
Ensure that an entity or component cannot be used as a target in an IsA relationship.
Final can improve the performance of queries as they will not attempt to substitute a final component with its subsets.
Behavior:
|
extern |
Ensure that a relationship target is a child of the specified entity.
Behavior:
|
extern |
Ensure that an entity is always used in a pair as a relationship.
Behavior:
|
extern |
Mark component as singleton.
Singleton components may only be added to themselves.
|
extern |
Mark relationship as commutative.
Behavior:
|
extern |
Ensure that an entity is always used in a pair as a target.
Behavior:
|
extern |
Can be added to components to indicate it is a trait.
Traits are components and/or tags that are added to other components to modify their behavior.