2017-06-21 00:18:46 -07:00
|
|
|
|
2017-08-14 10:44:41 -07:00
|
|
|
glass = {}
|
2021-05-26 18:16:38 -07:00
|
|
|
glass.modname = core.get_current_modname()
|
|
|
|
glass.modpath = core.get_modpath(glass.modname)
|
|
|
|
|
|
|
|
function glass.log(lvl, msg)
|
|
|
|
if not msg then
|
|
|
|
msg = lvl
|
|
|
|
lvl = nil
|
|
|
|
end
|
|
|
|
|
|
|
|
msg = "[" .. glass.modname .. "] " .. msg
|
|
|
|
if not lvl then
|
|
|
|
core.log(msg)
|
|
|
|
else
|
|
|
|
core.log(lvl, msg)
|
|
|
|
end
|
|
|
|
end
|
2017-08-14 11:54:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
local scripts = {
|
2021-05-26 17:53:22 -07:00
|
|
|
"nodes",
|
2017-08-14 11:54:50 -07:00
|
|
|
}
|
|
|
|
|
2021-08-25 07:20:33 -07:00
|
|
|
for _, script in ipairs(scripts) do
|
|
|
|
dofile(glass.modpath .. "/" .. script .. ".lua")
|
2017-08-14 11:54:50 -07:00
|
|
|
end
|