mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor(es modules): heightmap config
This commit is contained in:
parent
2e4d142cf7
commit
f9f60176d9
9 changed files with 183 additions and 173 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue