World.ensure_run: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/world.bend as World Lines 97-100 of bendvy-ecs-core@0.1.0.3/world.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&start_line=97&end_line=100 import Base import bendvy-ecs-core@0.1.0.3/clock_state.bend as Clock # A direct query owns a new scope; a query inside a system reuses that scope. def ensure_run(~S:Data,~C:Type,~R:Type,~E:Data,world:World) -> World & Bool: match world: 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): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/clock_state.bend&name=ensure https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=ensure_returned