BiomeMap2D Generate2DBiomeMap(short biomeId) { BiomeMap2D biomeMap2D = new BiomeMap2D(size, step); for (int x = 0; x < size; x++) { for (int y = 0; y < size; y++) { biomeMap2D.AddBiome(x, y, biomeId, 1); } } return(biomeMap2D); }
public override Sampler Clone(Sampler reuseObject) { BiomeMap2D newSampler; if (reuseObject != null) { newSampler = reuseObject as BiomeMap2D; newSampler.ResizeIfNeeded(size, step); } else { newSampler = new BiomeMap2D(size, step); } newSampler.min = min; newSampler.max = max; System.Buffer.BlockCopy(blendMap, 0, newSampler.blendMap, 0, blendMap.Length); return(newSampler); }