Machine.apply_snapshot: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/machine.bend as Machine Lines 107-114 of bendvy-ecs-core@0.1.0.3/machine.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/machine.bend&start_line=107&end_line=114 import Base # Captured initial value is authoritative; current pending is deleted at the # machine's turn, matching Runtime.ts:1534 even when an earlier hook overwrote it. def apply_snapshot(~S: Data,~M: Data,~V: Data,~same: V -> V -> Bool,slot: Slot,captured: Snapshot) -> Applied: match slot captured: case slot Unscheduled{}: Applied{slot,None{}} case Missing{} Scheduled{_,_}: Applied{Missing{},None{}} case Present{current,_,previous,changed} Scheduled{value,skipSame}: apply_present(~S,~M,~V,~same,current,value,previous,changed,skipSame) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/machine.bend&name=Applied https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/machine.bend&name=Slot https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/machine.bend&name=Snapshot https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/machine.bend&name=apply_present