fCraft.VanillaMapGenState.VanillaMapGenState C# (CSharp) Method

VanillaMapGenState() private method

private VanillaMapGenState ( VanillaMapGenParameters genParams ) : System
genParams VanillaMapGenParameters
return System
        internal VanillaMapGenState( VanillaMapGenParameters genParams ) {
            this.genParams = genParams;
            Parameters = genParams;
            random = new Random( genParams.Seed );
            waterLevel = genParams.MapHeight/2;
            heightmap = new int[genParams.MapWidth*genParams.MapLength];
            map = new Map( null, genParams.MapWidth, genParams.MapLength, genParams.MapHeight, true );
            blocks = map.Blocks;
            ReportsProgress = true;
            SupportsCancellation = true;
        }