def resource

bendvy-ecs-core@0.1.0.4 · ordinary_schema_provision.bend:38

import bendvy-ecs-core@0.1.0.4/ordinary_schema_provision.bend as OrdinarySchemaProvision
import 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)}

Uses (6)

Used by (1)