ExecutionRecoverableComponent.replaced: 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 44-47 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=44&end_line=47
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
def replaced(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,handle:W.Handle,result:W.World & Exchange
) -> RC.Replacement,S,P>:
match result:
case (world,Exchanged{stamp,previous}):RC.Applied{world,RC.Record{handle,stamp,previous}}
case (world,ExchangeRefused{incoming}):RC.Refused{world,incoming,W.CapacityExceeded{}}
Uses (8):
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/recoverable_component.bend&name=Record
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/recoverable_component.bend&name=Replacement
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
https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=WorldError