collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
869 stars 99 forks source link

Implement support for subscribing to stat modifications #110

Open collinsmith opened 3 years ago

collinsmith commented 3 years ago

I'd like to look into the possibility of adding the ability to create listeners for stat modification events. Thus far, stat values are retrieved every frame where needed, but with combat being implemented, it may be more elegant to use listeners to help manage the clutter. The UI can generally use the update event when the attributes tree is changed just fine, but maybe listeners can be used to help propagate and/or validate stats.

see #50 (possibly related)