tep06
Member
tep06 submitted a new resource:
Task Manager for Lua modders - Small task/event manager.
Read more about this resource...
Task Manager for Lua modders - Small task/event manager.
What is this exactly ?
To put it very simply: it's a tool that follows the same logic as SRB2's hooks. In SRB2, you can add a function to a hook, but you can't easily remove it or "read" what's inside. TaskManager allows you to add functions (tasks) to an event, but also to unregister them whenever you want. It’s like a more flexible, readable, and reversible version of the standard hook system.
Why did I make this ?
Initially, I just wanted to organize the code for a custom character I'm making. I had so much logic to handle that I wanted a clean way to separate every ability into its own file. But I got so focused on building this library that I almost forgot my main goal! So, here we are.
How to start ?
Everything is included in the FullPack (zip) file (Core, Example, Defs, and Docs).
I also left the Core script as a separate download for a quick drop-in.
Read more about this resource...
Last edited: