GridManager.AllSquares C# (CSharp) 메소드

AllSquares() 개인적인 정적인 메소드

private static AllSquares ( ) : IEnumerable
리턴 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 );
            }
        }
    }