def ensure_run
import bendvy-ecs-core@0.1.0.3/world.bend as Worldimport Base
import bendvy-ecs-core@0.1.0.3/clock_state.bend as Clock
97# A direct query owns a new scope; a query inside a system reuses that scope.
98def ensure_run(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>) -> World<S,C,R,E> & Bool:
99 match world:
100 case World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock,lifecycle}:ensure_returned(~S,~C,~R,~E,namespace,allocator,store,resource,events,pending,registrations,nextSystemId,Clock.ensure(clock),lifecycle)
Uses (5)
Used by (0)
No other definition uses this definition.