View Single Post
12-28-17, 12:16 AM   #4
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
Originally Posted by Game92 View Post
[highlight="Lua"]-- Lib Globals
local _G = _G
local select = select
local unpack = unpack
local tonumber = tonumber
local match = string.match
local floor = math.floor
...
Code:
local A, C, L = select(2, ...):unpack()
It is only available for the files inside the addon.
For other addon, it should be fine to just "local A, C, L = select(YourAddonName):unpack()", because of the bottom line of your code "_G[AddOnName] = Engine".

So now, for some addon that doesn't have the bottom code as you do, is there any way to access as well?

Last edited by siweia : 12-28-17 at 12:28 AM.
  Reply With Quote