def inserted

bendvy-ecs-core@0.1.0.4 · restore_graph_schema.bend:18

import bendvy-ecs-core@0.1.0.4/restore_graph_schema.bend as RestoreGraphSchema
import Base
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as Relation
import bendvy-ecs-core@0.1.0.4/relation_types.bend as G
import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product

18def inserted(~S:Data,~C:Type,~Resources:Type,~Machines:Type,~State:Type,graph:G.Graph<S>,machines:Machines,result:(C & Resources) & State) -> (Relation.Store<S,C> & Product.Owner<Resources,Machines>) & State:
19  match result:
20    case ((components,resources),state):((Relation.Store{components,graph},Product.Owner{resources,machines}),state)

Uses (5)

Used by (1)