Function ecs_has_id

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_has_id(const ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)

Description

Test if an entity has an entity. This operation returns true if the entity has the provided entity in its type.

Parameters

world - The world.

entity - The entity.

id - The id to test for.

Returns
True if the entity has the entity, false if not.

Source

Line 1517 in include/flecs.h.