ExecutionDeferredPlan.target_updated: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend as ExecutionDeferredPlan Lines 61-63 of bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend&start_line=61&end_line=63 import Base def target_updated(positions:List<&2,Position>,+distance:Nat,+needsSync:Bool,+ignored:Bool,target:Node,current:Position) -> List<&2,Position>: match current: case Position{id,oldDistance,pending}:update(positions,Position{id,Nat.max(oldDistance,Nat.add(distance,weight(Bool.and(needsSync,Bool.not(ignored)),target))),Bool.or(pending,Bool.and(needsSync,ignored))}) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.max https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend&name=Position https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend&name=update https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend&name=weight