mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
simplify IIFE - expose to window
This commit is contained in:
parent
dc10a0b6cb
commit
d542b761d0
1 changed files with 2 additions and 4 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
(function (global, factory) {
|
window.HeightmapGenerator = (function () {
|
||||||
typeof exports === "object" && typeof module !== "undefined" ? (module.exports = factory()) : typeof define === "function" && define.amd ? define(factory) : (global.HeightmapGenerator = factory());
|
|
||||||
})(this, function () {
|
|
||||||
let cells, p;
|
let cells, p;
|
||||||
|
|
||||||
const generate = function () {
|
const generate = function () {
|
||||||
|
|
@ -411,4 +409,4 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
return {generate, addHill, addRange, addTrough, addStrait, addPit, smooth, modify};
|
return {generate, addHill, addRange, addTrough, addStrait, addPit, smooth, modify};
|
||||||
});
|
})();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue