def allocated
bendvy-ecs-core@0.1.0.3 · execution_deferred_settings.bend:117
import bendvy-ecs-core@0.1.0.3/execution_deferred_settings.bend as ExecutionDeferredSettings
import Base
import bendvy-ecs-core@0.1.0.3/dependency_plan.bend as Plan
117def allocated(before:U32,after:U32,distance:Nat,choice:Maybe<&2,U32>,graph:Graph) -> GraphResult:
118 match choice graph:
119 case None{} _:GraphRejected{Plan.Cycle{}}
120 case Some{+id} Graph{nodes,edges,syncs,automatic}:GraphReady{connect(before,after,id,Graph{Plan.Node{id,[]} <> nodes,edges,id <> syncs,Automatic{distance,id} <> automatic})}