summaryrefslogtreecommitdiff
path: root/editor/main.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-21 17:44:03 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-23 11:42:23 -0500
commitfa7fc343a0e444da72938fad58d219cf52228976 (patch)
tree24630be0c54f9768a13f32c5970558768e343543 /editor/main.cpp
parent6fa3b137c74536d2bab77f3309ca5b4c60953fe0 (diff)
plugin checkpoint - multiple plugins and collision callbacks
Diffstat (limited to 'editor/main.cpp')
-rw-r--r--editor/main.cpp10
1 files changed, 6 insertions, 4 deletions
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);