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

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

Loading...
Searching...
No Matches
ID API
C API » Macro API » Type-Safe API
Collaboration diagram for ID API:

## Macros
#define | ecs_count(world, type)
| Count entities with a component.

## Detailed Description

## Macro Definition Documentation

## ◆ ecs_count

#define ecs_count | ( |  | world,
|  |  | type )

Value:
ecs_count_id(world, ecs_id(type))
ecs_id
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component ID for EcsDocDescription.
ecs_count_id
int32_t ecs_count_id(const ecs_world_t *world, ecs_id_t entity)
Count entities that have the specified ID.

Count entities with a component.

Definition at line 716 of file flecs_c.h.