Best way to organize an addon
Hi,
I've made an addon that implements alot of usefull things.
Target's life and mana/rage/energy, little bar on top screen with some inf regarding coords, gold and stuff like that, it displays shows a msg when u gain rep w a fraction, get or make a critical strike (meele and spell), and other stuff.
Due to it's complexity, I separte each addon function in seperate .xml and .lua files and made 1 file that join all together.
I also made the catch of events in a sperate file, putting in each event the call to the respective function.
I was wondering if this is the best aproach, or shall I make a single .xml and .lua file w all functionalitys in it.
The single file approach has 1 big drawback, wich is trying to debug or add anything new.
Was wondering, in sake of effeciency, memory consuming and loading time, in which way should I organize the addon.
Cheers and Thks
|