Наследование: 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([NotNull] VanillaMapGenParameters genParams)
 {
     if (genParams == null)
     {
         throw new ArgumentNullException("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;
 }
Пример #3
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;
 }