def normalize_resources
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as ExecutionComposerLayoutimport Base
import bendvy-ecs-core@0.1.0.3/owner_product.bend as Product
287def normalize_resources(~S:Data,layout:Layout,owners:resources(~S,layout)) -> resources(~S,layout):
288 match layout owners:
289 case EmptyLayout{} owner:owner
290 case LayoutLeaf{P,V,refresh,key,accessPolicy} ResourceSlot{Viewed{owner,_},stamp}:ResourceSlot{initialized(P,V,refresh(owner)),stamp}
291 case ClassifiedLayoutLeaf{P,V,refresh,key,_,accessPolicy} ResourceSlot{Viewed{owner,_},stamp}:ResourceSlot{initialized(P,V,refresh(owner)),stamp}
292 case LayoutPair{left,right} Product.Owner{l,r}:Product.Owner{normalize_resources(~S,left,l),normalize_resources(~S,right,r)}
Uses (6)
Used by (0)
No other definition uses this definition.