def resource_key
import bendvy-ecs-core@0.1.0.4/ordinary_schema.bend as OrdinarySchemaimport Base
23# Return the authored resource key; does not read a runtime resource.
24def resource_key(~S:Data,~P:Type,value:Resource<S,P>) -> String:
25 match value:
26 case Resource{key}:key
Uses (2)
Used by (15)
- bendvy-ecs-core@0.1.0.4/ordinary_resource_system:clause
- bendvy-ecs-core@0.1.0.4/ordinary_schema:resource_schema
- bendvy-ecs-core@0.1.0.4/ordinary_optional_resource_declaration:built
- bendvy-ecs-core@0.1.0.4/ordinary_optional_resource:slot_available
- bendvy-ecs-core@0.1.0.4/ordinary_owned_event_family_resource:write
- …