This commit is contained in:
Cooldude2606
2017-11-30 19:20:11 +00:00
parent 4efa83edd9
commit ec0be19e54
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)