refactor: start files migration nightmare

This commit is contained in:
Azgaar 2022-06-25 00:47:48 +03:00
parent c4736cc640
commit bc65e0e207
64 changed files with 1990 additions and 816 deletions

33
modules/define-globals.js Normal file
View file

@ -0,0 +1,33 @@
"use strict";
// define global vabiable, each to be refactored and de-globalized 1-by-1
let grid = {}; // initial graph based on jittered square grid and data
let pack = {}; // packed graph and data
let seed;
let mapId;
let mapHistory = [];
let elSelected;
let notes = [];
let customization = 0;
let rulers;
let biomesData;
let nameBases;
let color;
let lineGen;
// defined in main.js
let graphWidth;
let graphHeight;
let svgWidth;
let svgHeight;
let options = {};
let mapCoordinates = {};
let populationRate;
let distanceScale;
let urbanization;
let urbanDensity;
let statesNeutral;