Function ecs_system_get_query

Synopsis

#include <include/flecs/addons/system.h>

FLECS_API ecs_query_t * ecs_system_get_query(const ecs_world_t *world, ecs_entity_t system)

Description

Get the query object for a system. Systems use queries under the hood. This enables an application to get access to the underlying query object of a system. This can be useful when, for example, an application needs to enable sorting for a system.

Parameters

world - The world.

system - The system from which to obtain the query.

Returns
The query.

Source

Line 221 in include/flecs/addons/system.h.