Made console command registry a better usage pattern
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user