Add "Game" editor for better runtime debugging

This commit is contained in:
Michael Alexsander
2024-09-18 18:07:18 -03:00
parent 8004c7524f
commit 16524a8a01
45 changed files with 2378 additions and 274 deletions

View File

@@ -116,6 +116,10 @@ void Engine::set_time_scale(double p_scale) {
}
double Engine::get_time_scale() const {
return freeze_time_scale ? 0 : _time_scale;
}
double Engine::get_unfrozen_time_scale() const {
return _time_scale;
}
@@ -404,6 +408,10 @@ bool Engine::notify_frame_server_synced() {
return server_syncs > SERVER_SYNC_FRAME_COUNT_WARNING;
}
void Engine::set_freeze_time_scale(bool p_frozen) {
freeze_time_scale = p_frozen;
}
Engine::Engine() {
singleton = this;
}