mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
32 lines
1.1 KiB
Lua
32 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
|
|
|
|
|
|
--[[
|
|
require 'utils.data_stages'
|
|
local Container = require 'container'
|
|
Container.handlers = {
|
|
Event='utils.event',
|
|
Global='utils.global',
|
|
error=error,
|
|
logging=function(...) log(...) end,
|
|
tableToString=serpent.line
|
|
}
|
|
Container.loadHandlers()
|
|
Container.files = {
|
|
'modules.test'
|
|
}
|
|
Container.loadFiles()
|
|
]] |