Files
factorio-scenario-ExpCluster/locale/ExpCore/load.lua
2017-12-04 18:34:36 +00:00

40 lines
1.2 KiB
Lua

--[[
Explosive Gaming
This file can be used with permission but this and the credit below must remain in the file.
Contact a member of management on our discord to seek permission to use our code.
Any changes that you may make to the code are yours but that does not make the script yours.
Discord: https://discord.gg/r6dC2uK
]]
--[[
ExpCore
This file allow you to only require this one file to return the diffent libarys.
This file will return a function which can be used to access only the part you want.
Pass a table with the names of the objects you want and it will be return in that order
]]
local ExpCore = {}
-- note to self - server with use async and promissis with .on_error and .on_success and the appilty to set data
--ExpCore.Server = require '/server'
require '/commands'
--[[ExpCore.Ranking = require '/ranking'
require '/ranks'
ExpCore.Gui = require '/gui'
require '/GuiParts/inputs'
require '/GuiParts/toolbar'
require '/GuiParts/center'
require '/GuiParts/left'
require '/GuiParts/popup']]
return function(rtn)
local to_return = {}
for _,name in pairs(rtn) do
if ExpCore[name] then
table.insert(to_return,StdExpCoreLib[name])
end
end
return unpack(to_return)
end