源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 regels
992 B

-- function import(moduleName, currentModuleName)
-- local currentModuleNameParts
-- local moduleFullName = moduleName
-- local offset = 1
-- while true do
-- if string.byte(moduleName, offset) ~= 46 then -- .
-- moduleFullName = string.sub(moduleName, offset)
-- if currentModuleNameParts and #currentModuleNameParts > 0 then
-- moduleFullName = table.concat(currentModuleNameParts, ".") .. "." .. moduleFullName
-- end
-- break
-- end
-- offset = offset + 1
-- if not currentModuleNameParts then
-- if not currentModuleName then
-- local n,v = debug.getlocal(3, 1)
-- currentModuleName = v
-- end
-- currentModuleNameParts = string.split(currentModuleName, ".")
-- end
-- table.remove(currentModuleNameParts, #currentModuleNameParts)
-- end
-- return require(moduleFullName)
-- end