refactor(es modules): heightmap config

This commit is contained in:
Azgaar 2022-06-30 00:29:08 +03:00
parent 2e4d142cf7
commit f9f60176d9
9 changed files with 183 additions and 173 deletions

View file

@ -1,3 +1,5 @@
import {heightmapTemplates} from "config/heightmap-templates";
import {precreatedHeightmaps} from "config/precreated-heightmaps";
import {shouldRegenerateGrid, generateGrid} from "utils/graphUtils";
import {byId} from "utils/shorthands";
import {generateSeed} from "utils/probabilityUtils";

View file

@ -1,10 +1,11 @@
import {ERROR} from "../config/logging";
import {lim, minmax} from "../utils/numberUtils";
import {heightmapTemplates} from "config/heightmap-templates";
import {TIME} from "config/logging";
import {createTypedArray} from "utils/arrayUtils";
import {findGridCell} from "utils/graphUtils";
import {getNumberInRange, P, rand} from "utils/probabilityUtils";
import {byId} from "utils/shorthands";
import {ERROR} from "../config/logging";
import {lim, minmax} from "../utils/numberUtils";
window.HeightmapGenerator = (function () {
let grid = null;

View file

@ -1,3 +1,4 @@
import {heightmapTemplates} from "config/heightmap-templates";
import {createTypedArray, last} from "utils/arrayUtils";
import {getColorScheme, getHeightColor} from "utils/colorUtils";
import {throttle} from "utils/functionUtils";

View file

@ -1,3 +1,5 @@
import {heightmapTemplates} from "config/heightmap-templates";
import {precreatedHeightmaps} from "config/precreated-heightmaps";
import {lock, locked} from "scripts/options/lock";
import {clearMainTip, tip} from "scripts/tooltips";
import {last} from "utils/arrayUtils";