mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
refactor: map events
This commit is contained in:
parent
3c850d8d46
commit
ff97c9227d
32 changed files with 433 additions and 329 deletions
|
|
@ -2,7 +2,7 @@ import * as d3 from "d3";
|
|||
|
||||
import {ERROR, WARN} from "config/logging";
|
||||
import {loadMapFromURL} from "modules/io/load";
|
||||
import {restoreDefaultEvents} from "scripts/events";
|
||||
import {setDefaultEventHandlers} from "scripts/events";
|
||||
import {ldb} from "scripts/indexedDB";
|
||||
import {getInputValue} from "utils/nodeUtils";
|
||||
import {generateMapOnLoad} from "./generation";
|
||||
|
|
@ -11,7 +11,7 @@ export function addOnLoadListener() {
|
|||
document.on("DOMContentLoaded", async () => {
|
||||
await loadOrGenerateMap();
|
||||
hideLoading();
|
||||
restoreDefaultEvents();
|
||||
setDefaultEventHandlers();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue