hooksystem: add callbackinfo struct and cancellable events
This commit is contained in:
parent
c6233a790f
commit
a61eb7694d
13 changed files with 39 additions and 24 deletions
|
|
@ -29,7 +29,7 @@ Feel like the API is missing something you'd like to use in your plugin? Open an
|
|||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
typedef std::function<void(void*, std::any)> HOOK_CALLBACK_FN;
|
||||
typedef std::function<void(void*, SCallbackInfo&, std::any)> HOOK_CALLBACK_FN;
|
||||
typedef struct {
|
||||
std::string name;
|
||||
std::string description;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue