Made console command registry a better usage pattern

This commit is contained in:
2026-09-16 01:59:18 -07:00
parent a6b98e0613
commit e93b046489
8 changed files with 131 additions and 33 deletions
+3 -2
View File
@@ -6,11 +6,12 @@
namespace sophia {
DebugUI::DebugUI(PanelRegistry& registry) : registry{registry} {
DebugUI::DebugUI(PanelRegistry& registry, ConsoleCommandRegistry& commands)
: registry{registry} {
// #ifndef NDEBUG
this->panelRegistryHandle = registry.emplace<PanelRegistryPanel>(registry);
this->frameStatsHandle = registry.emplace<FrameStatsPanel>();
this->consoleHandle = registry.emplace<ConsolePanel>();
this->consoleHandle = registry.emplace<ConsolePanel>(commands);
// #endif // !NDEBUG
}