ExecutionRecoverableComponent.undone: def of bendvy-ecs-core@0.1.0.3
Import: import bendvy-ecs-core@0.1.0.3/execution_recoverable_component.bend as ExecutionRecoverableComponent
Lines 58-61 of bendvy-ecs-core@0.1.0.3/execution_recoverable_component.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/execution_recoverable_component.bend&start_line=58&end_line=61
import Base
import bendvy-ecs-core@0.1.0.3/world.bend as W
import bendvy-ecs-core@0.1.0.3/recoverable_component.bend as RC
import bendvy-ecs-core@0.1.0.3/lifecycle.bend as Life
def undone(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,handle:W.Handle,saved:Life.Stamp,result:W.World & Exchange
) -> W.World & RC.Record:
match result:
case (world,Exchanged{stamp,previous}):(world,RC.Record{handle,stamp,previous})
case (world,ExchangeRefused{incoming}):(world,RC.Record{handle,saved,incoming})
Uses (7):
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.3/execution_recoverable_component.bend&name=Exchange
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/lifecycle.bend&name=Stamp
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/recoverable_component.bend&name=Record
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=Handle
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=World