Revert "Remake MapGen (based on polyhedrons)"

This reverts commit ca56b703e3.
This commit is contained in:
Van
2025-10-29 18:53:41 +03:00
parent 91e5067aa9
commit ec3cde237c
19 changed files with 322 additions and 842 deletions

View File

@@ -3,7 +3,7 @@
---@field name string Technical name of the mod.
---@field shortName string
---@field path string Path to the mod folder.
---@field Class any A public class that provides a mod.
---@field Class table A public class that provides a mod.
---@field require fun(FileName:string):table
Mod = {}
@@ -17,10 +17,9 @@ local function getShortModName(name)
end
---Return table with mod name, path and require function.
---@param modname? string Specify a name of mod to get its info
---@return {name: string, shortName: string, path: string, require: fun(FileName : string): table}
function Mod.getInfo(modname)
local name = modname or core.get_current_modname()
function Mod.getInfo()
local name = core.get_current_modname()
local shortName = getShortModName(name)
local path = core.get_modpath(name)
local require = Require.getModRequire(name, path)