public IEnumerable <OldMapSpot> GetAllSpots(BinaryMapPlaneId planeId) { var plane = _planes[(int)planeId]; for (int index = 0; index < plane.Length; index++) { var x = index % Size.Width; var y = index / Size.Height; yield return(new OldMapSpot(plane[index], index, x, y)); } }
public IEnumerable <ushort> GetRawPlaneData(BinaryMapPlaneId planeId) => _planes[(int)planeId];