diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-18 22:37:02 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-18 22:37:02 -0500 |
| commit | 1b48d1382d2d57a822201f34743a51813798b348 (patch) | |
| tree | 612672a4be654b38f3b44580f85e4f0637952512 /src/plugins.hpp | |
| parent | 2e680ebd77236f7b62b9ded1b083c86f9e13b1c8 (diff) | |
camera checkpoint - large refactor for attempting to let physics own camera position
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; |
