This is something I used in the old version of https://github.com/Quaint-Studios/Sustenet on the production-prep
branch. The concept is really just a generic wrapper around functions but it's an ArrayList.
This just piggybacks off of the Actions and I renamed it to Event. This way all of the functions in the ArrayList can be called by a function called invoke()
. It also adds extra functions. This will also come in handy when I start implementing the Zig side of https://github.com/Quaint-Studios/Reia. So check those two repositories for any early updates.
This part is still experimental. I hate how much I have to write to do something so simple. I'll eventually simplify it some more.