Function ecs_id_is_tag

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_id_is_tag(const ecs_world_t *world, ecs_id_t id)

Description

Returns whether specified id a tag. This operation returns whether the specified type is a tag (a component without data/size).

An id is a tag when:

  • it is an entity without the EcsComponent component
  • it has an EcsComponent with size member set to 0
  • it is a pair where both elements are a tag
  • it is a pair where the first element has the EcsTag tag
Parameters

world - The world.

id - The id.

Returns
Whether the provided id is a tag.

Source

Line 2337 in include/flecs.h.