Inheritance: MapGeneratorParameters
示例#1
0
 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;
 }
示例#2
0
 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;
 }