protected override Tile[,] GenerateFeatures(int width, int height, Configuration config) { Tile[,] output = new Tile[width, height]; List <Tile[, ]> featureLayers = new List <Tile[, ]>(); featureLayers.Add(LandscapeGenerator.CreateTileDistribution <DirtFloor>(width, height, 1, 1)); featureLayers.Add(LandscapeGenerator.CreateTileDistribution <Grass>(width, height, config.Surface.GrassScale, config.Surface.GrassCoverage)); return(output); }
protected override Tile[,] GenerateFeatures(int width, int height, Configuration config) { Tile[,] output = new Tile[width, height]; List <Tile[, ]> featureLayers = new List <Tile[, ]>(); featureLayers.Add(LandscapeGenerator.CreateTileDistribution <DirtWall>(width, height, 1, 1)); featureLayers.Add(LandscapeGenerator.CreateTileDistribution <DirtFloor>(width, height, config.Underground.TunnelScale, config.Underground.TunnelCoverage)); featureLayers.Add(LandscapeGenerator.CreateTileDistribution <StoneWall>(width, height, config.Underground.StoneScale, config.Underground.StoneCoverage)); featureLayers.Add(LandscapeGenerator.CreateTileDistribution <StoneWall>(width, height, config.Underground.StoneScale, config.Underground.StoneCoverage)); featureLayers.Add(LandscapeGenerator.CreateTileDistribution <OreWall>(width, height, config.Underground.OreScale, config.Underground.OreCoverage)); featureLayers.ForEach((f) => LandscapeGenerator.ApplyDistributionToTileArray(output, f)); return(output); }