public static void ForEachVisibleTileInRange(int xPos, int yPos, int vision, System.Action <Tile> func) { ForEachTileInRange(xPos, yPos, vision, t => { if (LineOfSight.Test(xPos, yPos, t.XPos, t.YPos)) { func(t); } }); }