def resource
import bendvy-ecs-core@0.1.0.4/ordinary_schema_provision.bend as OrdinarySchemaProvisionimport Base
import bendvy-ecs-core@0.1.0.4/ordinary_schema.bend as Schema
38# Declare a resource schema leaf. Its component-storage contribution is
39# Unit and population slot is None; the caller supplies actual R on creation.
40def resource(~S:Data,~P:Type,declaration:Schema.Resource<S,P>) -> Provision<S,Unit,P,resource_empty,resource_count(~S)>:
41 Provision{Schema.resource_schema(~S,~P,declaration)}