Originally Posted by siweia
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?
|
AddOnName will use your addon name from your TOC file
local A, C, L = unpack(YourAddonName)