def result

bendvy-ecs-core@0.1.0.4 · ordinary_app_linked_cleanup.bend:30

import bendvy-ecs-core@0.1.0.4/ordinary_app_linked_cleanup.bend as OrdinaryAppLinkedCleanup
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_app_relation.bend as Relation
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as A
import bendvy-ecs-core@0.1.0.4/relation_cleanup.bend as Cleanup
import bendvy-ecs-core@0.1.0.4/world.bend as W

30def result(~S:Data,~C:Type,~R:Type,~E:Data,result:Cleanup.CleanupResult<S,C,R,E>) -> Relation.World(~S,~C,~R,~E):
31  match result:
32    case Cleanup.Complete{world}:world
33    case Cleanup.Incomplete{world,frames}:W.event_publish(~S,~A.Store<S,C>,~R,~A.Notice<S,E>,world,[A.CleanupPaused{frames}])

Uses (6)

Used by (1)