Flecs: Misc
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
Macros
Misc
C API » Macro API

Misc convenience macro's. More...

Collaboration diagram for Misc:

## Macros
#define | ecs_isa(e)
#define | ecs_childof(e)
#define | ecs_dependson(e)
#define | ecs_with(e)
#define | ecs_each(world, id)
#define | ecs_each_pair(world, r, t)
#define | ecs_each_pair_t(world, R, t)

## Detailed Description

Misc convenience macro's.

## Macro Definition Documentation

## ◆ ecs_childof

#define ecs_childof | ( |  | e | ) |

Value:
ecs_pair(EcsChildOf, e)
EcsChildOf
const ecs_entity_t EcsChildOf
Used to express parent-child relationships.

Definition at line 875 of file flecs_c.h.

## ◆ ecs_dependson

#define ecs_dependson | ( |  | e | ) |

Value:
ecs_pair(EcsDependsOn, e)
EcsDependsOn
const ecs_entity_t EcsDependsOn
Used to express dependency relationships.

Definition at line 876 of file flecs_c.h.

## ◆ ecs_each

#define ecs_each | ( |  | world,
|  |  | id )

Value:
ecs_each_id(world, ecs_id(id))
ecs_id
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component id for EcsDocDescription.
ecs_each_id
ecs_iter_t ecs_each_id(const ecs_world_t *world, ecs_id_t id)
Iterate all entities with specified (component id).

Definition at line 879 of file flecs_c.h.

## ◆ ecs_each_pair

#define ecs_each_pair | ( |  | world,
|  |  | r,
|  |  | t )

Value:
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 )

Value:
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 | ) |

Value:
ecs_pair(EcsIsA, e)
EcsIsA
const ecs_entity_t EcsIsA
Used to express inheritance relationships.

Definition at line 874 of file flecs_c.h.

## ◆ ecs_with

#define ecs_with | ( |  | e | ) |

Value:
ecs_pair(EcsWith, e)
EcsWith
const ecs_entity_t EcsWith
Ensure that a component always is added together with another component.

Definition at line 877 of file flecs_c.h.