RecoverableComponent.replaced: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/recoverable_component.bend as RecoverableComponent Lines 22-25 of bendvy-ecs-core@0.1.0.4/recoverable_component.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_component.bend&start_line=22&end_line=25 import Base import bendvy-ecs-core@0.1.0.4/world.bend as W import bendvy-ecs-core@0.1.0.4/column.bend as Col import bendvy-ecs-core@0.1.0.4/component.bend as C import bendvy-ecs-core@0.1.0.4/lifecycle.bend as Life def replaced(~S:Data,~P:Type,~R:Type,~E:Data,handle:W.Handle,stamp:Life.Stamp,result:C.Replacement,R,E>,P>) -> Replacement,R,E>,S,P>: match result: case C.Replaced{world,previous}:Applied{world,Record{handle,stamp,previous}} case C.ReplaceRejected{world,incoming,error}:Refused{world,incoming,error} Uses (7): https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/column.bend&name=Column https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/component.bend&name=Replacement https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/lifecycle.bend&name=Stamp https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_component.bend&name=Record https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_component.bend&name=Replacement https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=Handle https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World