resources IIFE module

This commit is contained in:
Azgaar 2021-08-06 19:08:18 +03:00
parent 49ee2fcf7a
commit fe421bcd0d

View file

@ -1,15 +1,6 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? (module.exports = factory()) : typeof define === 'function' && define.amd ? define(factory) : (global.Resources = factory());
})(this, function () {
'use strict'; 'use strict';
// TODO window.Resources = (function () {
// apply logic on heightmap edit
// apply logic on burgs regeneration
// apply logic on population recalculation
// apply logic on save
// apply logic on load
let cells, cellId; let cells, cellId;
const getDefault = function () { const getDefault = function () {
@ -144,4 +135,4 @@
const get = (i) => pack.resources.find((resource) => resource.i === i); const get = (i) => pack.resources.find((resource) => resource.i === i);
return {generate, getDefault, defaultModels, methods, getStroke, get}; return {generate, getDefault, defaultModels, methods, getStroke, get};
}); })();