add test.quit, test.reopen_world

This commit is contained in:
MihailRis
2024-12-18 02:25:28 +03:00
parent fa1646a9bd
commit 5e55e20ec4
6 changed files with 55 additions and 2 deletions
+11
View File
@@ -461,6 +461,17 @@ void Engine::onWorldClosed() {
levelConsumer(nullptr);
}
void Engine::quit() {
quitSignal = true;
if (!isHeadless()) {
Window::setShouldClose(true);
}
}
bool Engine::isQuitSignal() const {
return quitSignal;
}
gui::GUI* Engine::getGUI() {
return gui.get();
}