public List <Block> GetNearbyBlocks(GridCoordinates coordinates) { List <Block> results = new List <Block>(); List <GridCoordinates> coords = coordinates.GetNearestCoords(this); coords.ForEach(x => { results.Add(GetBlock(x)); }); return(results); }
public List <Block> GetNearbyBlocks(GridCoordinates coordinates) { List <Block> results = new List <Block>(); List <GridCoordinates> coords = coordinates.GetNearestCoords(this); coords.ForEach(x => { results.Add(GetBlock(x)); }); return(results); }