def cell_matches
import bendvy-ecs-core@0.1.0.4/owned_family.bend as OwnedFamilyimport Base
import restored_row.bend as R
45def cell_matches(~S:Data,~C:Type,cell:R.Cell<S,C>,+id:U32) -> R.Cell<S,C> & Bool:
46 match cell:
47 case R.Taken{+captured,owner,stamp,dirty,cold}: (R.Taken{captured,owner,stamp,dirty,cold},U32.is_eq(captured,id))
48 case other: (other,False{})