def kind_entries

bendvy-ecs-core@0.1.0.4 · ordinary_app_access.bend:60

import bendvy-ecs-core@0.1.0.4/ordinary_app_access.bend as OrdinaryAppAccess
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_app_registration_fields.bend as Records
import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as Query

60def kind_entries(~S:Data,+namespace:U32,+id:U32,+name:String,slot:String,access:List<&2,String>,retained:List<&2,Query.Clause<S>>,kind:Records.RegistrationKind) -> List<&2,Entry>:
61  match kind:
62    case Records.ComponentKind{}:entries(~S,Components{},namespace,id,name,retained)
63    case Records.FieldKind{}:entries(~S,Resources{},namespace,id,name,retained)
64    case Records.ServiceKind{}:[Entry{Services{},slot,[]}]
65    case Records.EventKind{}:entries(~S,Events{},namespace,id,name,retained)
66    case Records.ResourceKind{mode}:entries(~S,Resources{},namespace,id,name,resource_fields(~S,mode,access))
67    case Records.MixedKind{uses}:mixed_entries(~S,namespace,id,name,uses)

Uses (10)

Used by (1)