public override int GetValue(int x, int y) { if (CalculateIndex(x, y, _data.Length, out int index)) return _data[index] ? 1 : 0; return 0; } }