TraceRelation.unrelate: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/trace_relation.bend as TraceRelation Lines 40-43 of bendvy-ecs-core@0.1.0.4/trace_relation.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/trace_relation.bend&start_line=40&end_line=43 import Base import bendvy-ecs-core@0.1.0.4/trace_facts.bend as Facts import bendvy-ecs-core@0.1.0.4/relation_types.bend as G import bendvy-ecs-core@0.1.0.4/world.bend as W def unrelate(~S:Data,state:Facts.State,descriptor:G.Descriptor,operation:Facts.Operation,source:W.Handle,result:Facts.FactResult) -> Facts.State: match state: case Facts.Off{}:Facts.Off{} case Facts.On{facts}:Facts.On{Facts.RelationFact{identity(~S,descriptor),operation,handle(~S,source),Facts.UnrelateAction{},result} <> facts} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_types.bend&name=Descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=Fact https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=FactResult https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=Operation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=RelationAction https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=State https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_relation.bend&name=handle https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_relation.bend&name=identity https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=Handle