fCraft.MapGeneratorOld.GenerateOcean C# (CSharp) Method

GenerateOcean() private method

private GenerateOcean ( int width, int length, int height ) : Map
width int
length int
height int
return Map
        public static Map GenerateOcean( int width, int length, int height )
        {
            Map map = new Map( null, width, length, height, true );
            map.Blocks.MemSet( ( byte )Block.Sand, 0, width * length );
            map.Blocks.MemSet( ( byte )Block.Water, width * length, width * length * ( height / 2 - 1 ) );
            return map;
        }