Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Enabling & Disabling
Collaboration diagram for Enabling & Disabling:

Macros

#define ecs_enable_component(world, entity, T, enable)
 Enable or disable a component.
#define ecs_is_enabled(world, entity, T)
 Test if a component is enabled.
#define ecs_enable_pair(world, entity, First, second, enable)
 Enable or disable a pair.
#define ecs_is_enabled_pair(world, entity, First, second)
 Test if a pair is enabled.

Detailed Description

Macro Definition Documentation

◆ ecs_enable_component

#define ecs_enable_component ( world,
entity,
T,
enable )
Value:
ecs_enable_id(world, entity, ecs_id(T), enable)
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component ID for EcsDocDescription.
void ecs_enable_id(ecs_world_t *world, ecs_entity_t entity, ecs_id_t component, bool enable)
Enable or disable a component.

Enable or disable a component.

Definition at line 570 of file flecs_c.h.

◆ ecs_enable_pair

#define ecs_enable_pair ( world,
entity,
First,
second,
enable )
Value:
ecs_enable_id(world, entity, ecs_pair(ecs_id(First), second), enable)

Enable or disable a pair.

Definition at line 578 of file flecs_c.h.

◆ ecs_is_enabled

#define ecs_is_enabled ( world,
entity,
T )
Value:
ecs_is_enabled_id(world, entity, ecs_id(T))
bool ecs_is_enabled_id(const ecs_world_t *world, ecs_entity_t entity, ecs_id_t component)
Test if a component is enabled.

Test if a component is enabled.

Definition at line 574 of file flecs_c.h.

◆ ecs_is_enabled_pair

#define ecs_is_enabled_pair ( world,
entity,
First,
second )
Value:
ecs_is_enabled_id(world, entity, ecs_pair(ecs_id(First), second))

Test if a pair is enabled.

Definition at line 582 of file flecs_c.h.