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

Macros

#define ecs_add(world, entity, T)    ecs_add_id(world, entity, ecs_id(T))
 
#define ecs_add_pair(world, subject, first, second)    ecs_add_id(world, subject, ecs_pair(first, second))
 
#define ecs_remove(world, entity, T)    ecs_remove_id(world, entity, ecs_id(T))
 
#define ecs_remove_pair(world, subject, first, second)    ecs_remove_id(world, subject, ecs_pair(first, second))
 
#define ecs_auto_override(world, entity, T)    ecs_auto_override_id(world, entity, ecs_id(T))
 
#define ecs_auto_override_pair(world, subject, first, second)    ecs_auto_override_id(world, subject, ecs_pair(first, second))
 

Detailed Description

Macro Definition Documentation

◆ ecs_add

#define ecs_add ( world,
entity,
T )    ecs_add_id(world, entity, ecs_id(T))

Definition at line 330 of file flecs_c.h.

◆ ecs_add_pair

#define ecs_add_pair ( world,
subject,
first,
second )    ecs_add_id(world, subject, ecs_pair(first, second))

Definition at line 333 of file flecs_c.h.

◆ ecs_auto_override

#define ecs_auto_override ( world,
entity,
T )    ecs_auto_override_id(world, entity, ecs_id(T))

Definition at line 344 of file flecs_c.h.

◆ ecs_auto_override_pair

#define ecs_auto_override_pair ( world,
subject,
first,
second )    ecs_auto_override_id(world, subject, ecs_pair(first, second))

Definition at line 347 of file flecs_c.h.

◆ ecs_remove

#define ecs_remove ( world,
entity,
T )    ecs_remove_id(world, entity, ecs_id(T))

Definition at line 337 of file flecs_c.h.

◆ ecs_remove_pair

#define ecs_remove_pair ( world,
subject,
first,
second )    ecs_remove_id(world, subject, ecs_pair(first, second))

Definition at line 340 of file flecs_c.h.