Initial commit
This commit is contained in:
14
mods/API/Mod/init.lua
Normal file
14
mods/API/Mod/init.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
_G.Mod = {}
|
||||
|
||||
table.for_each("z", "")
|
||||
|
||||
function Mod:new(addToGlobal)
|
||||
for key, value in pairs(addToGlobal) do
|
||||
_G[key] = value
|
||||
end
|
||||
local modName = core.get_current_modname()
|
||||
local modPath = core.get_modpath(modName)
|
||||
|
||||
local modTable = ModTable:new(modName, modPath)
|
||||
modTable.require = ModTable:getRequire()
|
||||
end
|
||||
Reference in New Issue
Block a user