def collected

bendvy-ecs-core@0.1.0.4 · removals.bend:104

import bendvy-ecs-core@0.1.0.4/removals.bend as Removals
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W

104def collected(~S: Data,~C: Type,~R: Type,~E: Data,result: W.World<S,C,R,E> & Bool) -> W.World<S,C,R,E> & Bool:
105  match result:
106    case (world,False{}): (world,False{})
107    case (W.World{namespace,allocator,store,resource,events,pending,+registrations,nextSystemId,clock},True{}): (collect_checked(~S,~C,~R,~E,readers_remain(registrations),W.World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock}),True{})

Uses (6)

Used by (1)