def relate_source

bendvy-ecs-core@0.1.0.3 · execution_relation_interpreter.bend:26

import bendvy-ecs-core@0.1.0.3/execution_relation_interpreter.bend as ExecutionRelationInterpreter
import Base
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as A
import bendvy-ecs-core@0.1.0.3/world.bend as W
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

26def relate_source(~S:Data,+namespace:U32,graph:T.Graph<S>,descriptor:T.Descriptor<S>,source:W.Handle<S>,+target:W.Handle<S>,checked:A.Allocator & Bool) -> A.Allocator & O.Outcome<S>:
27  match checked:
28    case (allocator,sourceLive):relate_target(~S,graph,descriptor,source,target,sourceLive,live(~S,namespace,allocator,target))

Uses (11)

Used by (1)