Added support for modules to specifiy DLLs and Libs to be used by the engine

This commit is contained in:
antopilo
2025-04-05 16:38:15 -04:00
parent 5bb4303eff
commit 6037d48210
6 changed files with 108 additions and 32 deletions

View File

@@ -207,7 +207,7 @@ namespace Nuake
{
GetCurrentScene()->OnExit();
Input::ShowMouse();
gameState = GameState::Stopped;
SetGameState(GameState::Stopped);
}
}
@@ -244,6 +244,12 @@ namespace Nuake
Window::Get()->EndDraw();
}
void Engine::SetGameState(GameState state)
{
gameState = state;
ModuleDB::Get().OnGameStateChanged(state);
}
void Engine::Close()
{
glfwTerminate();
@@ -265,6 +271,8 @@ namespace Nuake
if (result)
{
OnSceneLoaded.Broadcast(scene);
ModuleDB::Get().OnSceneLoaded(scene);
}
return result;