ecs_system_get_query

Function ecs_system_get_query 

Source
pub unsafe extern "C" fn ecs_system_get_query(
    world: *const ecs_world_t,
    system: ecs_entity_t,
) -> *mut ecs_query_t
Expand 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.

@param world The world. @param system The system from which to obtain the query. @return The query.