def store_relate
bendvy-ecs-core@0.1.0.4 · relation_commands.bend:34
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as RelationCommands
import Base
import entity_key.bend as Key
import relation_types.bend as G
import relation_graph.bend as C
34def store_relate(~S: Data,~C: Type,store: Store<S,C>,descriptor: G.Descriptor<S>,source:Key.Key,target:Key.Key,sourceLive: Bool,targetLive: Bool) -> Store<S,C> & Maybe<&2,G.Error>:
35 match store:
36 case Store{components,graph}: relate_result(~S,~C,C.relate(~S,graph,descriptor,source,target,sourceLive,targetLive),components)