def extend

bendvy-ecs-core@0.1.0.3 · execution_relation_resource_snapshot.bend:26

import bendvy-ecs-core@0.1.0.3/execution_relation_resource_snapshot.bend as ExecutionRelationResourceSnapshot
import Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as Layout
import bendvy-ecs-core@0.1.0.3/execution_resource_policy.bend as Policy
import bendvy-ecs-core@0.1.0.3/execution_relation_store.bend as Store
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T

26# A closed grant extends this observer beside its mutating dispatcher. It never
27# grants gameplay access to the graph owner, failure channel or resource lens.
28def extend(~S:Data,~resources:Layout.Layout,~route:Layout.Route,~descriptor:T.Descriptor<S>,~payload:{Layout.payload(resources,route) == Store.Store<S,descriptor> : Type},~view:{Layout.view(resources,route) == Store.View<S,descriptor> : Data},~protected:{Layout.policy(resources,route) == Policy.ProtectedRelation{S,descriptor} : Policy.Policy},previous:Program(~S,~resources)) -> Program(~S,~resources):
29  owners => gathered(~S,~resources,~route,~descriptor,~payload,~view,previous(owners))

Uses (11)

Used by (1)