def events_view

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

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

270# Return World and its copied Data event list without consuming or acknowledging
271# reader positions. Affine Type event logs use their separate resource ownership.
272def events_view(~S: Data,~C: Type,~R: Type,~E: Data,world: World<S,C,R,E>) -> World<S,C,R,E> & List<&2,E>:
273  match world:
274    case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock}: (World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock},events)

Uses (4)

Used by (18)