OrdinaryResourceSystem.clause: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/ordinary_resource_system.bend as OrdinaryResourceSystem Lines 30-33 of bendvy-ecs-core@0.1.0.4/ordinary_resource_system.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_resource_system.bend&start_line=30&end_line=33 import Base import bendvy-ecs-core@0.1.0.4/ordinary_schema.bend as Schema import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as Query # Derive the resource key/mode clause from the same retained declaration. def clause(~S:Data,~R:Type,~H:Type,~Ops:Type,declaration:Declaration) -> Query.Clause: match declaration: case Declaration{identity,kind,_}:Query.Clause{Schema.resource_key(~S,~R,identity),kind} Uses (3): https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend&name=Clause https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_resource_system.bend&name=Declaration https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_schema.bend&name=resource_key