Function ecs_get_case

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_get_case(const ecs_world_t *world, ecs_entity_t e, ecs_entity_t sw)

Description

Get case for switch. This operation gets the current case for the specified switch. If the current switch is not set for the entity, the operation will return 0.

Parameters

world - The world.

e - The entity.

sw - The switch for which to obtain the case.

Returns
The current case for the specified switch.

Source

Line 1356 in include/flecs.h.