ExecutionRelationInterpreter.apply: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend as ExecutionRelationInterpreter Lines 50-57 of bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend&start_line=50&end_line=57 import Base import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as A import bendvy-ecs-core@0.1.0.3/relation_types.bend as T import bendvy-ecs-core@0.1.0.3/execution_relation_operation.bend as O # Bevy ad678262, relationship/mod.rs:28-36 makes the source relationship # authoritative and maintains its target collection. Existing Bend graph/reorder # algorithms implement that invariant; dispatch never accepts an inverse writer. def apply(~S:Data,~descriptor:T.Descriptor,+namespace:U32,allocator:A.Allocator,graph:T.Graph,operation:O.Operation) -> A.Allocator & O.Outcome: match operation: case O.Relate{+source,target}:relate_source(~S,namespace,graph,descriptor,source,target,live(~S,namespace,allocator,source)) case O.Unrelate{+source}:unrelate_checked(~S,graph,descriptor,source,live(~S,namespace,allocator,source)) case O.Reorder{parent,children}:reorder(~S,namespace,allocator,graph,descriptor,parent,children) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/entity_allocator.bend&name=Allocator https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend&name=live https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend&name=relate_source https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend&name=reorder https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend&name=unrelate_checked https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_operation.bend&name=Operation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_operation.bend&name=Outcome https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=Descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=Graph