mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add test.quit, test.reopen_world
This commit is contained in:
parent
fa1646a9bd
commit
5e55e20ec4
6 changed files with 55 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue