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; }
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; }