def publish
import bendvy-ecs-core@0.1.0.4/commands.bend as Commandsimport Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
20# Publish these detached Data events to World in list order. This is immediate
21# publication, not transactional staging or synchronization of an event Runtime.
22def publish(~S: Data,~C: Type,~R: Type,~E: Data,world: W.World<S,C,R,E>,events: List<&2,E>) -> W.World<S,C,R,E>:
23 W.event_publish(~S,~C,~R,~E,world,events)