View Single Post
12-15-16, 04:12 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
There are two ways you can go at this. The first is requiring the addon to provide its name to every function requiring the differentiation. Another is to change your API so every addon has to call a generator function that returns a control object which is used by the library to isolate data for each addon.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 12-15-16 at 04:55 PM.
  Reply With Quote