def resource_replaced

bendvy-ecs-core@0.1.0.4 · decode_requests.bend:58

import bendvy-ecs-core@0.1.0.4/decode_requests.bend as DecodeRequests
import Base
import bendvy-ecs-core@0.1.0.4/bundle_batch.bend as Batch
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/transaction.bend as T
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
import bendvy-ecs-core@0.1.0.4/persistence_declaration.bend as Decl
import bendvy-ecs-core@0.1.0.4/ordinary_declaration.bend as Identity

58# Additive trusted resource provider over the SAME transaction; gameplay can use
59# it only when provisioning explicitly includes this owned grant in its Ops.
60def resource_replaced(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,~identity:Identity.Declaration<S,P>,~project:P -> P & D.Raw,declaration:Decl.Constructed<S,P,identity,project>,prepared:List<Batch.Prepared<S,Packet<P>>>,tx:T.Tx<W.World<S,C,R,E>,E>) -> Owner<S,C,R,E,P,identity,project> & Unit:
61  (Owner{Batch.Batch{tx,prepared},declaration},Unit{})

Uses (13)

Used by (1)