diff options
Diffstat (limited to 'src/plugins.hpp')
| -rw-r--r-- | src/plugins.hpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/plugins.hpp b/src/plugins.hpp index a474750..697fbf1 100644 --- a/src/plugins.hpp +++ b/src/plugins.hpp @@ -3,24 +3,7 @@ #include "array.hpp" #include "dynamic-array.hpp" - -struct PKEPluginInterface { - // for internal use only - void *pluginHandle = nullptr; - void (*OnInit)() = nullptr; - void (*OnTick)(double delta) = nullptr; - void (*OnTeardown)() = nullptr; - void (*OnImGuiRender)() = nullptr; -}; - -constexpr int64_t CallbackSignatureLength = 16; -using CallbackSignature = char[CallbackSignatureLength]; -struct PkeCallback { - // the 16 char signature(name) of a function - CallbackSignature name = {'\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0'}; - // the address of the function to call - populated on startup - void *func = nullptr; -}; +#include "plugin-types.hpp" extern DynArray<PKEPluginInterface> LoadedPkePlugins; extern PkeArray<PkeCallback> pkePluginCallbacks; |
