refactor: generation script

This commit is contained in:
Azgaar 2022-07-12 20:09:08 +03:00
parent 00d8d28d76
commit c0f6ce00ef
11 changed files with 112 additions and 97 deletions

View file

@ -14,7 +14,7 @@ import {changeViewMode} from "modules/ui/options";
import {addZones} from "modules/zones";
import {aleaPRNG} from "scripts/aleaPRNG";
import {setDefaultEventHandlers} from "scripts/events";
import {undraw} from "scripts/generation";
import {undraw} from "scripts/generation/generation";
import {prompt} from "scripts/prompt";
import {rankCells} from "scripts/rankCells";
import {reGraph} from "scripts/reGraph";

View file

@ -2,7 +2,8 @@ import * as d3 from "d3";
import {heightmapTemplates} from "config/heightmap-templates";
import {precreatedHeightmaps} from "config/precreated-heightmaps";
import {shouldRegenerateGridPoints, generateGrid} from "utils/graphUtils";
import {generateGrid} from "utils/graphUtils";
import {shouldRegenerateGridPoints} from "scripts/generation/generation";
import {byId} from "utils/shorthands";
import {generateSeed} from "utils/probabilityUtils";
import {getColorScheme} from "utils/colorUtils";