def access
import bendvy-ecs-core@0.1.0.4/ordinary_event_declaration.bend as OrdinaryEventDeclarationimport Base
33# Return the domain key suffixed with :read or :write for registration metadata.
34# This string does not grant access or identify an actual runtime world.
35def access(~S:Data,~E:Data,declaration:Declaration<S,E>) -> String:
36 match declaration:
37 case Declaration{Domain{key},Read{}}:String.concat([key,":read"])
38 case Declaration{Domain{key},Write{}}:String.concat([key,":write"])
Uses (6)
Used by (5)
- bendvy-ecs-core@0.1.0.4/ordinary_reader_stream_parameter:event_access
- bendvy-ecs-core@0.1.0.4/event_family_routing:registration_read_checked
- bendvy-ecs-core@0.1.0.4/ordinary_event_declaration:register_reader
- bendvy-ecs-core@0.1.0.4/ordinary_event_declaration:register_writer
- bendvy-ecs-core@0.1.0.4/owned_event_family_reader_query:registration_checked