def access

bendvy-ecs-core@0.1.0.4 · ordinary_event_declaration.bend:33

import bendvy-ecs-core@0.1.0.4/ordinary_event_declaration.bend as OrdinaryEventDeclaration
import 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)