Quantcast WoWInterface - View Single Post - separate modules within 1 addon
View Single Post
11-15-12, 11:15 AM   #21
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,732
There is a point to the library though. Instead of creating 100+ event frames for 100 addons, you have 1 frame delivering events to them. Frames are the most expensive single value object in the system memory-wise. The problem is introducing these libraries to new programmers too early and making them believe this is how the WoW API works, wrong and completely oblivious to what the library is doing for them.

Originally Posted by AnrDaemon View Post
Phanx, you making assumptions in the void
What Phanx says is true. Frames are the only object in the WoW API that can receive events. AceEvents-3.0 is the most widely used library if not the only one that is made to handle events too. What is being said is AceEvents-3.0 uses a frame to run its event dispatcher. Look at the code for yourself if you don't believe us, although it's a complete mess.
ESOUI AddOns | 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 : 11-15-12 at 11:28 AM.
  Reply With Quote