public void BuildHollow(int x, int y, int levelsCount, int ringWidth, float ringHeight) { var tileHeights = MountainBuilder.BuildHollow(x, y, levelsCount, ringWidth, ringHeight, XResolution, ZResolution); foreach (var tileHeight in tileHeights) { LowerTile(tileHeight.Key.x, tileHeight.Key.y, tileHeight.Value); } }
public void BuildMountain(int x, int y, int levelsCount, int ringWidth, float ringHeight) { var baseHeight = _mapChunksAccessor.GetHeightOfTileAt(Tiles[new Vector2Int(x, y)]); var tileHeights = MountainBuilder.BuildMountain(x, y, levelsCount, ringWidth, ringHeight, XResolution, ZResolution); foreach (var tileHeight in tileHeights) { RaiseTile(tileHeight.Key.x, tileHeight.Key.y, tileHeight.Value + baseHeight); } }