RelationQuery.value: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/relation_query.bend as RelationQuery Lines 59-62 of bendvy-ecs-core@0.1.0.4/relation_query.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/relation_query.bend&start_line=59&end_line=62 import Base import entity_key.bend as Key import relation_types.bend as G import relation_graph.bend as Graph def value(~S:Data,graph:G.Graph,descriptor:G.Descriptor,end:End,+namespace:U32,id:Key.Key) -> Value: match end: case Outgoing{}: outgoing_value(~S,Graph.target(~S,graph,descriptor,id),namespace) case Incoming{}: incoming_value(~S,Graph.inverse(~S,graph,descriptor,id),namespace) Uses (10): 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.4/entity_key.bend&name=Key https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_graph.bend&name=inverse https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_graph.bend&name=target https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_query.bend&name=End https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_query.bend&name=Value https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_query.bend&name=incoming_value https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_query.bend&name=outgoing_value 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/relation_types.bend&name=Graph