Function ecs_run_worker

Synopsis

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

FLECS_API ecs_entity_t ecs_run_worker(ecs_world_t *world, ecs_entity_t system, int32_t stage_current, int32_t stage_count, ecs_ftime_t delta_time, void *param)

Description

Same as ecs_run, but subdivides entities across number of provided stages.

Parameters

world - The world.

system - The system to run.

stage_current - The id of the current stage.

stage_count - The total number of stages.

delta_time - The time passed since the last system invocation.

param - A user-defined parameter to pass to the system.

Returns
handle to last evaluated entity if system was interrupted.

Source

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