Document and improve hooks
- [ ] Document the hooks
- [ ] Maybe improve the API?
- [ ] Add new hooks where plugin makers need them
Areas for hook improvements:
- Challenges
- CPD (Maybe allow modders to do some cool stuff with this? May not need hooks.)
- Mastery
- Scoring(?)
- Multiplayer(?)
Additionally, add ability to untap, add priorities, etc
Can we not untap? Thought we could.
I don't think we can officially right now, you can always hack around it e.g.
let a = true
hooks.example.tap("MyPlugin", () => {
if (!a) return
console.log("still tapped")
a = false
console.log("untapped for future use")
})
Ah okay, that's fair. Should we still use tapable or move away from that? I vaguely recall you complaining about it in the past.
We already migrated off tapable because it's codegen at runtime approach could be buggy, this is what we're using rn
Ah right I forgot about that change, mostly because we kept the API design the same.