From 1b48d1382d2d57a822201f34743a51813798b348 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 18 Jan 2024 22:37:02 -0500 Subject: camera checkpoint - large refactor for attempting to let physics own camera position --- src/plugins.hpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/plugins.hpp') 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 LoadedPkePlugins; extern PkeArray pkePluginCallbacks; -- cgit v1.2.3