Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches

Misc convenience macro's. More...

Collaboration diagram for Misc:

Macros

#define ecs_isa(e)   ecs_pair(EcsIsA, e)
 
#define ecs_childof(e)   ecs_pair(EcsChildOf, e)
 
#define ecs_dependson(e)   ecs_pair(EcsDependsOn, e)
 
#define ecs_with(e)   ecs_pair(EcsWith, e)
 
#define ecs_each(world, id)   ecs_each_id(world, ecs_id(id))
 
#define ecs_each_pair(world, r, t)   ecs_each_id(world, ecs_pair(r, t))
 
#define ecs_each_pair_t(world, R, t)   ecs_each_id(world, ecs_pair(ecs_id(R), t))
 

Detailed Description

Misc convenience macro's.

Macro Definition Documentation

◆ ecs_childof

#define ecs_childof ( e)    ecs_pair(EcsChildOf, e)

Definition at line 875 of file flecs_c.h.

◆ ecs_dependson

#define ecs_dependson ( e)    ecs_pair(EcsDependsOn, e)

Definition at line 876 of file flecs_c.h.

◆ ecs_each

#define ecs_each ( world,
id )   ecs_each_id(world, ecs_id(id))

Definition at line 879 of file flecs_c.h.

◆ ecs_each_pair

#define ecs_each_pair ( world,
r,
t )   ecs_each_id(world, ecs_pair(r, t))

Definition at line 880 of file flecs_c.h.

◆ ecs_each_pair_t

#define ecs_each_pair_t ( world,
R,
t )   ecs_each_id(world, ecs_pair(ecs_id(R), t))

Definition at line 881 of file flecs_c.h.

◆ ecs_isa

#define ecs_isa ( e)    ecs_pair(EcsIsA, e)

Definition at line 874 of file flecs_c.h.

◆ ecs_with

#define ecs_with ( e)    ecs_pair(EcsWith, e)

Definition at line 877 of file flecs_c.h.