def enqueue_command

bendvy-ecs-core@0.1.0.4 · world.bend:205

import bendvy-ecs-core@0.1.0.4/world.bend as World
import Base
import bendvy-ecs-core@0.1.0.4/deferred_command.bend as Deferred

205# Transfer one affine command to the reverse pending accumulator. It is not run
206# until a barrier; arbitrary command bodies are trusted engine adapters.
207def enqueue_command(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>,command:Deferred.Command<World<S,C,R,E>>) -> World<S,C,R,E>:
208  match world:
209    case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock}:World{namespace,allocator,store,resource,events,command <> pending,registrations,nextSystemId,clock}

Uses (3)

Used by (2)