def despawn_collected

bendvy-ecs-core@0.1.0.3 · execution_command_publication.bend:98

import bendvy-ecs-core@0.1.0.3/execution_command_publication.bend as ExecutionCommandPublication
import Base
import bendvy-ecs-core@0.1.0.3/execution_lifecycle_notices.bend as Notice
import bendvy-ecs-core@0.1.0.3/world.bend as W
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as A
import bendvy-ecs-core@0.1.0.3/change_tick.bend as Tick
import bendvy-ecs-core@0.1.0.3/execution_command_buffer.bend as Buffer

98def despawn_collected(-S:Data,-C:Type,-R:Type,-E:Data,-P:Type,-D:Type,allocator:A.Allocator,remainder:Remainder<S,C,R,E>,+handle:W.Handle<S>,result:C & D,+tick:Tick.Tick,notices:Notice.Identity<S> -> Tick.Tick -> Notice.Journal<S> -> D -> Notice.Journal<S> & D,despawned:Notice.Identity<S> -> Tick.Tick -> Notice.Journal<S> -> Notice.Journal<S>) -> W.World<S,C,R,E> & Buffer.Receipt<S,P,D>:
99  match remainder handle result:
100    case Remainder{namespace,resource,events,pending,registrations,nextSystemId,clock,lifecycle} W.Handle{+handleNamespace,+key}, (store,removed):despawn_returned(S,C,R,E,P,D,namespace,resource,events,pending,registrations,nextSystemId,clock,allocator,store,W.Handle{handleNamespace,key},tick,despawned,notices(Notice.Identity{handleNamespace,key},tick,lifecycle,removed))

Uses (11)

Used by (1)