RestoreGraphRuntimeState.drained: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/restore_graph_runtime_state.bend as RestoreGraphRuntimeState Lines 36-38 of bendvy-ecs-core@0.1.0.4/restore_graph_runtime_state.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/restore_graph_runtime_state.bend&start_line=36&end_line=38 import Base import bendvy-ecs-core@0.1.0.4/world.bend as W import bendvy-ecs-core@0.1.0.4/world_resource_owner.bend as WR import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product import bendvy-ecs-core@0.1.0.4/event_notice_runtime.bend as Mixed import bendvy-ecs-core@0.1.0.4/relation_commands.bend as Notice def drained(~S:Data,~C:Type,~User:Type,~Logs:Type,~Machines:Type,~P:Data,~F:Type,~Owners:Type,~Receipt:Type,~clear:F -> F,rest:WR.Rest,Machines>,Notice.Notice>,user:User,machines:Machines,metadata:Mixed.State & Nat,result:Logs & Receipt) -> W.World,Machines>,Notice.Notice> & ((Mixed.State & Nat) & Receipt): match result: case (logs,receipt):(W.events_replace(~S,~C,~Product.Owner,Machines>,~Notice.Notice,WR.put(~S,~C,~Product.Owner,Machines>,~Notice.Notice,rest,Product.Owner{Product.Owner{user,logs},machines}),[]),(clear_metadata(~S,~P,~F,~Owners,~clear,metadata),receipt)) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/event_notice_runtime.bend&name=State https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/owner_product.bend&name=Owner https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_commands.bend&name=Notice https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_graph_runtime_state.bend&name=clear_metadata https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=events_replace https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world_resource_owner.bend&name=Rest https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world_resource_owner.bend&name=put