set method

void set(
  1. int x,
  2. int y,
  3. Cell cell
)

Implementation

void set(int x, int y, Cell cell) {
  if (!_inBounds(x, y)) {
    return;
  }

  _cleanupOrphan(x, y);
  _cells[y * width + x] = cell;
}