Files
factorio-scenario-ExpCluster/control.lua
Cooldude2606 3dbe493f1f Fixed few bugs
2019-02-24 20:52:13 +00:00

31 lines
1.1 KiB
Lua

--[[ not_luadoc=true
function _log(...) log(...) end -- do not remove this is used for smaller verbose lines
Manager = require("FactorioSoftmodManager")
Manager.setVerbose{
selfInit=true, -- called while the manager is being set up
moduleLoad=false, -- when a module is required by the manager
moduleInit=false, -- when and within the initation of a module
modulePost=false, -- when and within the post of a module
moduleEnv=false, -- during module runtime, this is a global option set within each module for fine control
eventRegistered=false, -- when a module registers its event handlers
errorCaught=true, -- when an error is caught during runtime
output=Manager._verbose -- can be: can be: print || log || other function
}
Manager() -- can be Manager.loadModules() if called else where
]]
local Container = require 'container'
Container.handlers = {
--event
--global
error=error,
logging=function(...) log(...) end,
--debug
tableToString=serpent.line
}
Container.loadHandlers()
Container.files = {
'modules.test'
}
Container.loadFiles()