def cleanup_result

bendvy-ecs-core@0.1.0.4 · lifetime_scope.bend:51

import bendvy-ecs-core@0.1.0.4/lifetime_scope.bend as LifetimeScope
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
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

51def cleanup_result(~S:Data,~C:Type,~R:Type,~E:Data,result:Cleanup.CleanupResult<S,Store<S,C>,R,E>) -> W.World<S,A.Store<S,Store<S,C>>,R,A.Notice<S,E>>:
52  match result:
53    case Cleanup.Complete{world}:world
54    case Cleanup.Incomplete{world,frames}:W.event_publish(~S,~A.Store<S,Store<S,C>>,~R,~A.Notice<S,E>,world,[A.CleanupPaused{frames}])

Uses (7)

Used by (1)