diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-05 13:07:57 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-05 13:07:57 -0500 |
| commit | c349359e71170c2fa78ac0fa22df07932ab47210 (patch) | |
| tree | 74795fee5b64fe94683c6078d3b50ec5112a4707 /editor | |
| parent | 6e498a3781f5ccbbaa6cf5e407cf67722624760f (diff) | |
minor refactor for plugins
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | editor/main.cpp | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt index bd176c4..eaa72f8 100644 --- a/editor/CMakeLists.txt +++ b/editor/CMakeLists.txt @@ -8,5 +8,5 @@ set(PKE_EDITOR_SOURCE_FILES add_executable(pke_editor ${PKE_EDITOR_SOURCE_FILES} ) -target_link_libraries(pke_editor PRIVATE pke imguidocked) -target_include_directories(pke_editor PRIVATE pke imguidocked) +target_link_libraries(pke_editor PRIVATE pke) +target_include_directories(pke_editor PRIVATE pke) diff --git a/editor/main.cpp b/editor/main.cpp index 54c7607..c0cc7c0 100644 --- a/editor/main.cpp +++ b/editor/main.cpp @@ -1,5 +1,6 @@ #include <csignal> +#include "plugins.hpp" #include "editor.hpp" #include "event.hpp" #include "game.hpp" @@ -17,10 +18,10 @@ int main() { // setup { pkeSettings.isShowingEditor = true; - pkeGameCallbacks.OnInit = PkeEditor_Init; - pkeGameCallbacks.OnTick = PkeEditor_Tick; - pkeGameCallbacks.OnTeardown = PkeEditor_Teardown; - pkeGameCallbacks.OnImGuiRender = PkeEditor_RecordImGui; + pkePlugin.OnInit = PkeEditor_Init; + pkePlugin.OnTick = PkeEditor_Tick; + pkePlugin.OnTeardown = PkeEditor_Teardown; + pkePlugin.OnImGuiRender = PkeEditor_RecordImGui; } // run Game_Main({}); |
