mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Rename
This commit is contained in:
@@ -16,7 +16,7 @@ local ExpLib = {}
|
||||
-- @usage a = {k1='foo',k2='bar'}
|
||||
-- _load_to_G(a)
|
||||
-- @tparam table tbl table to add to the global lua table
|
||||
function ExpLib._load_to_G(tbl)
|
||||
function ExpLib._unpack_to_G(tbl)
|
||||
if not type(tbl) == 'table' or game then return end
|
||||
for name,value in pairs(tbl) do
|
||||
if not _G[name] then _G[name] = value end
|
||||
|
||||
@@ -28,4 +28,4 @@ local Color, Game, Event = require('/locale/StdLib/load'){'Color','Game','Event'
|
||||
|
||||
-- loads the ExpLib, functions are plased into the lua global
|
||||
local ExpLib = require 'ExpLib'
|
||||
ExpLib._load_to_G(ExpLib)
|
||||
ExpLib._unpack_to_G(ExpLib)
|
||||
|
||||
Reference in New Issue
Block a user