World.ensure_run: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/world.bend as World Lines 95-98 of bendvy-ecs-core@0.1.0.4/world.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&start_line=95&end_line=98 import Base import bendvy-ecs-core@0.1.0.4/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}:ensure_returned(~S,~C,~R,~E,namespace,allocator,store,resource,events,pending,registrations,nextSystemId,Clock.ensure(clock)) 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.4/clock_state.bend&name=ensure https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=ensure_returned