def plan
import bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend as ExecutionDeferredPlanimport Base
107# Bevy ad678262, schedule/auto_insert_apply_deferred.rs build: distance rises
108# for a needed sync or an unconditional explicit sync target. Ignored edges
109# postpone deferred visibility through later nodes; exclusive targets override
110# that suppression. Reuse one explicit boundary at the required distance.
111# Final flushing is an executor setting, independent of this graph-build pass.
112def plan(enabled:Bool,+order:List<&2,Node>,+edges:List<&2,Edge>) -> List<&2,Boundary>:
113 match enabled:
114 case False{}:[]
115 case True{}:planned(order,edges,distances(order,order,edges,State{[],[]}))