RowColumn.attach: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/row_column.bend as RowColumn Lines 48-51 of bendvy-ecs-core@0.1.0.4/row_column.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/row_column.bend&start_line=48&end_line=51 import Base import column.bend as Col def attach(~S:Data,~C:Type,cell:Cell) -> Col.SwapOutcome: match cell: case Untaken{column,incoming,_}: Col.Rejected{column,incoming} case Taken{+id,owner,stamp,dirty,cold}: attach_marked(~S,~C,id,stamp,dirty,Col.swap(~S,~C,cold_column(~S,~C,cold),id,owner)) Uses (5): https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/column.bend&name=SwapOutcome https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/column.bend&name=swap https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/row_column.bend&name=Cell https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/row_column.bend&name=attach_marked https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/row_column.bend&name=cold_column