VeeGen.VGArea.ToArray C# (CSharp) Method

ToArray() public method

public ToArray ( ) : ].int[
return ].int[
        public int[,] ToArray()
        {
            int[,] result = new int[Width, Height];

            for (int iY = 0; iY < Height; iY++) for (int iX = 0; iX < Width; iX++) result[iX, iY] = Tiles[iX, iY].Value;

            return result;
        }