diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-03-02 11:40:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 11:40:48 +0100 |
commit | 4f26f653e1ae168a050f3eca3e8073eca3f10367 (patch) | |
tree | 9f43571855964c5d8fe869cd8b7d5576a6ef98ac /src/Bindings/PluginManager.h | |
parent | cLightingThread: Faster chunk reading (#4185) (diff) | |
download | cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.gz cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.bz2 cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.lz cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.xz cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.tar.zst cuberite-4f26f653e1ae168a050f3eca3e8073eca3f10367.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/PluginManager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h index fdc1d1e7a..7a54be8e1 100644 --- a/src/Bindings/PluginManager.h +++ b/src/Bindings/PluginManager.h @@ -444,6 +444,12 @@ private: /** Returns the folders that are specified in the settings ini to load plugins from. */ AStringVector GetFoldersToLoad(cSettingsRepositoryInterface & a_Settings); + + /** Calls a_HookFunction on each plugin registered to the hook HookName. + Returns false if the action is to continue or true if the plugin wants to abort. + Accessible only from within PluginManager.cpp */ + template <typename HookFunction> + bool GenericCallHook(PluginHook a_HookName, HookFunction a_HookFunction); } ; // tolua_export |