Twintop / TwintopInsanityBar

Twintop's Resource Bar (formerly Twintop's Insanity Bar), a multi-class resource addon for World of Warcraft
MIT License
12 stars 7 forks source link

Refactor Spells #386

Closed Twintop closed 6 months ago

Twintop commented 7 months ago

Presently, the TRB.Data.spells object and its derivatives are fairly consistent but still unstructured data. This leads to problems when passing a spell into a method as we can't be certain all of the right properties are present or set. Additionally, many functions in the TRB.Functions.Spell namespace could be moved to being methods on a new TRB.Classes.SpellBase or decendant object instead.

Extra bits to explore (maybe separate issues?)