mirror of
https://github.com/notwa/mm
synced 2024-11-05 00:29:02 -08:00
Connor Olding
1acbaba58c
theres still a lot of work to do\nsince most scripts just set globals explicitly\nthis is still better than implied globals though
19 lines
386 B
Lua
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
|