def cell_matches

bendvy-ecs-core@0.1.0.4 · owned_family.bend:45

import bendvy-ecs-core@0.1.0.4/owned_family.bend as OwnedFamily
import 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{})

Uses (6)

Used by (2)