def event_publish_nonempty

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

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

258def event_publish_nonempty(~S: Data,~C: Type,~R: Type,~E: Data,world: World<S,C,R,E>,+published: List<&2,E>) -> World<S,C,R,E>:
259  match world:
260    case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock}: World{namespace,allocator,store,resource,event_append(~E,events,published),pending,registrations,nextSystemId,clock}

Uses (3)

Used by (1)