forked from Apancore.Studio/simple-makes-complex
19 lines
333 B
Lua
19 lines
333 B
Lua
Mod = {}
|
|
|
|
function Mod.getInfo()
|
|
local name = core.get_current_modname()
|
|
local path = core.get_modpath(name)
|
|
local require = Require.getModRequire(name, path)
|
|
|
|
return {name = name, path = path, require = require}
|
|
end
|
|
|
|
function Mod:new()
|
|
local mod = Mod.getInfo()
|
|
|
|
setmetatable(mod, self)
|
|
self.__index = self
|
|
|
|
return mod
|
|
end
|