View Single Post
07/03/14, 05:53 AM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
If I understand you correctly, there's no need for a separate library, LibStub is enough.

Lua Code:
  1. -- myaddondata.lua
  2. local data = LibStub:NewLibrary("MyAddonData-1", 1)
  3. if not data then return end
  4.  
  5. -- fill it ...

Lua Code:
  1. -- myaddon.lua, or someoneelsesaddon.lua, that wants to use myaddondata
  2. local data = LibStub:GetLibrary("MyAddonData-1")
  Reply With Quote