def enqueue_command

bendvy-ecs-core@0.1.0.3 · world.bend:207

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

207# Transfer one affine command to the reverse pending accumulator. It is not run
208# until a barrier; arbitrary command bodies are trusted engine adapters.
209def 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>:
210  match world:
211    case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock,lifecycle}:World{namespace,allocator,store,resource,events,command <> pending,registrations,nextSystemId,clock,lifecycle}

Uses (3)

Used by (1)