Machine.reset_taken: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/machine.bend as Machine Lines 120-125 of bendvy-ecs-core@0.1.0.4/machine.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/machine.bend&start_line=120&end_line=125 import Base import bendvy-ecs-core@0.1.0.4/deferred_command.bend as Deferred import bendvy-ecs-core@0.1.0.4/trace_facts.bend as TraceFacts import transaction.bend as Tx def reset_taken(~S: Data,~M: Data,~V: Data,~W: Type,~E: Data, ~put: W -> Slot -> W, pair: W & Slot,undo: List<&1,(W -> W)>,commands:List<&1,Deferred.Command>,events: List<&2,E>,trace:TraceFacts.State) -> Tx.Tx: match pair: case (world,+old): Tx.Tx{put(world,reset(~S,~M,~V,old)),(world => put(world,old)) <> undo,commands,events,trace} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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/deferred_command.bend&name=Command https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/machine.bend&name=Slot https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/machine.bend&name=reset https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=State https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/transaction.bend&name=Tx