Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
constraint_traits.h
Go to the documentation of this file.
1
6#ifdef FLECS_CONSTRAINT_TRAITS
7
8#ifndef FLECS_CONSTRAINT_TRAITS_H
9#define FLECS_CONSTRAINT_TRAITS_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
33FLECS_API extern const ecs_entity_t EcsFinal;
34
42FLECS_API extern const ecs_entity_t EcsSymmetric;
43
45FLECS_API extern const ecs_entity_t EcsAcyclic;
46
56FLECS_API extern const ecs_entity_t EcsOneOf;
57
61FLECS_API extern const ecs_entity_t EcsTrait;
62
72FLECS_API extern const ecs_entity_t EcsRelationship;
73
83FLECS_API extern const ecs_entity_t EcsTarget;
84
87FLECS_API extern const ecs_entity_t EcsSingleton;
88
91#ifdef __cplusplus
92}
93#endif
94
95#endif
96
97#endif // FLECS_CONSTRAINT_TRAITS
FLECS_API const ecs_entity_t EcsTrait
Can be added to components to indicate it is a trait.
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 EcsSingleton
Mark component as singleton.
FLECS_API const ecs_entity_t EcsSymmetric
Mark relationship as commutative.
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 EcsTarget
Ensure that an entity is always used in a pair as a target.
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 EcsAcyclic
Mark a relationship as acyclic.
ecs_id_t ecs_entity_t
An entity identifier.
Definition flecs.h:393