From fa7fc343a0e444da72938fad58d219cf52228976 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 21 Dec 2023 17:44:03 -0500 Subject: plugin checkpoint - multiple plugins and collision callbacks --- editor/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'editor/main.cpp') diff --git a/editor/main.cpp b/editor/main.cpp index af0e66a..2dee016 100644 --- a/editor/main.cpp +++ b/editor/main.cpp @@ -23,10 +23,12 @@ int main(int argc, char *argv[]) { { pkeSettings.isSimulationPaused = true; pkeSettings.isShowingEditor = true; - pkePlugin.OnInit = PkeEditor_Init; - pkePlugin.OnTick = PkeEditor_Tick; - pkePlugin.OnTeardown = PkeEditor_Teardown; - pkePlugin.OnImGuiRender = PkeEditor_RecordImGui; + LoadedPkePlugins.Push({ + .OnInit = PkeEditor_Init, + .OnTick = PkeEditor_Tick, + .OnTeardown = PkeEditor_Teardown, + .OnImGuiRender = PkeEditor_RecordImGui, + }); } // run PkeArgs_Parse(argc, argv); -- cgit v1.2.3