public void btnSmooth() { MapScaler ms = new MapScaler(); ms.Smooth(ref mapGen); cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel); DisplayMap(displayView); }
//BUTTON FUNCTIONS - GENERATION public void btnGenerateMap() { displayView = DisplayView.Biome; int td = d - iExpand + 1; int Dim = (int)Mathf.Pow(2, td) + 1; mapGen = new MapGen(Dim, Dim, iExpand); cdictSpectrum = MapColor.PaletteBasicSpectrum(0f); mapGen.GenerateMap(); AdjustCamera(mapGen.xDim, mapGen.yDim); MapScaler ms = new MapScaler(); for (int i = 0; i < iExpand; i++) { ms.Smooth(ref mapGen); } cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel); DisplayTilesInit(); DisplayMap(displayView); }