1.1.0 • Published 9 months ago

@sanjo-addons/hook v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

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.