-- MAPGEN ENVIROMENT ONLY -- https://api.luanti.org/core-namespace-reference/#mapgen-environment -- This environment is isolated from the main environment, -- so global tables need to be preloaded manually. -- --- Global APIs load -- -- Class dofile(core.get_modpath('smc__system__class')..'/init.lua') -- Ensure dofile(core.get_modpath('smc__system__ensure')..'/init.lua') -- Logger dofile(core.get_modpath('smc__system__logger')..'/init.lua') -- Math dofile(core.get_modpath('smc__system__math')..'/init.lua') -- Profile dofile(core.get_modpath('smc__system__profiler')..'/init.lua') -- Require dofile(core.get_modpath('smc__system__require')..'/init.lua') -- Mod dofile(core.get_modpath('smc__system__mod')..'/init.lua') -- TODO: исправить загрузку строковых библиотек (хотя они пока что не юзаются в мапгене) -- Они не работают из-за get_current_modname внутри utf8 -- UTF-8 -- dofile(core.get_modpath('smc__system__utf8')..'/init.lua') -- String -- dofile(core.get_modpath('smc__system__string')..'/init.lua') -- Table dofile(core.get_modpath('smc__system__table')..'/init.lua') -- TODO: пока что закоментировано, поскольку вызывает ошибку из-за global_step -- Smc lib loader -- dofile(core.get_modpath('smc__system__helper_lib')..'/init.lua') Smc = {isAsync = true} dofile(core.get_modpath('smc__system__helper_lib')..'/src/Lib/color.lua') ---@type MapGen local mapGenerator = dofile(core.get_modpath('smc__core__map_generator')..'/src/mapGenerator.lua') mapGenerator:run()