1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-05 05:59:04 -08:00
mm/Lua/lib/classes.lua
Connor Olding 1acbaba58c be super strict about globals
theres still a lot of work to do\nsince most scripts just set globals explicitly\nthis is still better than implied globals though
2016-01-13 09:21:24 -08:00

19 lines
386 B
Lua

-- for lazy people.
-- populate the global namespace with all available classes,
-- excluding menu/interface classes.
require "boilerplate"
local classes = {
"Monitor",
"ByteMonitor",
"FlagMonitor",
"SceneFlagMonitor",
"ActorLister",
"InputHandler",
"JoyWrapper",
}
for _, class in ipairs(classes) do
rawset(_G, class, require("classes."..class))
end