def field_registry

bendvy-ecs-core@0.1.0.4 · ordinary_app_registration_fields.bend:66

import bendvy-ecs-core@0.1.0.4/ordinary_app_registration_fields.bend as OrdinaryAppRegistrationFields
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/system.bend as Sys
import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as Query

66# Field declarations retain each canonical clause, including mixed read/write packs.
67def field_registry(~S:Data,~C:Type,~R:Type,~E:Data,~Args:Type,~Error:Data,~Out:Type,~runner:W.World<S,C,R,E> -> Args -> Sys.Outcome<W.World<S,C,R,E>,Error,Out>,slot:String,clauses:List<&2,Query.Clause<S>>,registry:Sys.Registry<S,C,R,E,Args,Error,Out,runner>) -> Token<Sys.Registry<S,C,R,E,Args,Error,Out,runner>> & Fields<S>:
68  match registry:
69    case Sys.Registry{namespace,id,name,access,cursor}:(Token{},Fields{namespace,id,name,access,cursor,slot,clauses,FieldKind{}})

Uses (11)

Used by (3)