GridManager.AllSquares C# (CSharp) Method

AllSquares() private static method

private static AllSquares ( ) : IEnumerable
return IEnumerable
    private static IEnumerable<Point> AllSquares()
    {
        // Return every point on the board in order.

        for ( int x = 0; x < MeshBoard.WIDTH; x++ )
        {
            for ( int y = 0; y < MeshBoard.HEIGHT; y++ )
            {
                yield return new Point( x, y );
            }
        }
    }