@sanjo-addons/hook
v1.1.0
Published
A library for providing hooks into functionality. This can help other add-on creators to save some work.
Downloads
1
Readme
Hook
A library for providing hooks into functionality. This can help other add-on creators to save some work.
Things included:
- Hook.Hook: a class for a hook.
- Hook.Hook.new: the constructor for the hook class.
- Hook.Hook:registerCallback: a method for registering a callback.
- Hook.Hook:registerCallbackForRunningOnce: a method for registering a callback that is only run once.
- Hook.Hook:runCallbacks: a method for running all registered callbacks.
You can support me on Patreon.