mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-04-02 03:44:39 +09:00
Fixed a few bugs
This commit is contained in:
@@ -11,7 +11,8 @@ Discord: https://discord.gg/r6dC2uK
|
||||
StdLib
|
||||
|
||||
This file allow you to only require this one file to return the diffent libarys.
|
||||
The array returned contains the stdlib modules so there can be decleared after the file require
|
||||
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 StdLib = {}
|
||||
@@ -19,8 +20,17 @@ local StdLib = {}
|
||||
require '/table'
|
||||
require '/string'
|
||||
require '/time'
|
||||
StdLib.Colour = require '/color'
|
||||
StdLib.Color = require '/color'
|
||||
StdLib.Game = require '/game'
|
||||
StdLib.Event = require '/event'
|
||||
|
||||
return StdLib
|
||||
return function(rtn)
|
||||
local to_return = {}
|
||||
for _,name in pairs(rtn) do
|
||||
if StdLib[name] then
|
||||
table.insert(to_return,StdLib[name])
|
||||
end
|
||||
end
|
||||
test = to_return
|
||||
return unpack(to_return)
|
||||
end
|
||||
Reference in New Issue
Block a user