VeeGen.VGWorld.VGWorld C# (CSharp) Method

VGWorld() public method

public VGWorld ( int mWidth, int mHeight, int mValue ) : System.Diagnostics
mWidth int
mHeight int
mValue int
return System.Diagnostics
        public VGWorld(int mWidth, int mHeight, int mValue)
        {
            Debug.Assert(mWidth > 0);
            Debug.Assert(mHeight > 0);

            Width = mWidth;
            Height = mHeight;
            Tiles = new VGTile[Width,Height];

            for (int iY = 0; iY < Height; iY++) for (int iX = 0; iX < Width; iX++) Tiles[iX, iY] = new VGTile(iX, iY, mValue);

            WorldArea = new VGArea(this, 0, 0, mWidth, mHeight);
        }
VGWorld