def ensure_run
bendvy-ecs-core@0.1.0.4 · world.bend:95
import bendvy-ecs-core@0.1.0.4/world.bend as World
import Base
import bendvy-ecs-core@0.1.0.4/clock_state.bend as Clock
95
96def ensure_run(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>) -> World<S,C,R,E> & Bool:
97 match world:
98 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))