MachineQueue.forced_pending_generic: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/machine_queue.bend as MachineQueue Lines 4-9 of bendvy-ecs-core@0.1.0.3/machine_queue.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/machine_queue.bend&start_line=4&end_line=9 import Base import bendvy-ecs-core@0.1.0.3/machine.bend as M # Bevy NextState::set_if_different preserves an existing forced same target. # Equality is the same closed erased V comparator used by apply/conditions. def forced_pending_generic(-V:Data,same:Bool,prior:V,value:V) -> M.Pending: match same: case True{}:M.Queued{prior,False{}} case False{}:M.Queued{value,True{}} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/machine.bend&name=Pending