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

View file

@ -41,6 +41,11 @@ void ServerMainloop::run() {
double delta = targetDelta;
auto begin = steady_clock::now();
while (process->isActive()) {
if (engine.isQuitSignal()) {
process->terminate();
logger.info() << "script has been terminated due to quit signal";
break;
}
time.step(delta);
process->update();
if (controller) {