diff options
| author | Juan Linietsky | 2017-08-20 12:55:46 -0300 |
|---|---|---|
| committer | GitHub | 2017-08-20 12:55:46 -0300 |
| commit | 541fdffc0ab2115238fe9cedbf1c088b15f11fdf (patch) | |
| tree | 187c5d0278e5075907fef8a86b4d00d6a0b7161a /core/engine.h | |
| parent | 831e21e89ba0275b43b6a351e538256b8ce715a3 (diff) | |
| parent | 90b8a5b71ef79e0339826507c4b290f0c51b7cd2 (diff) | |
| download | godot-541fdffc0ab2115238fe9cedbf1c088b15f11fdf.tar.gz godot-541fdffc0ab2115238fe9cedbf1c088b15f11fdf.tar.zst godot-541fdffc0ab2115238fe9cedbf1c088b15f11fdf.zip | |
Diffstat (limited to 'core/engine.h')
| -rw-r--r-- | core/engine.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/engine.h b/core/engine.h index 16dfb7759..1a07f5d1d 100644 --- a/core/engine.h +++ b/core/engine.h @@ -51,9 +51,12 @@ class Engine { float _time_scale; bool _pixel_snap; uint64_t _fixed_frames; + uint64_t _idle_frames; bool _in_fixed; + bool editor_hint; + static Engine *singleton; public: @@ -85,6 +88,14 @@ public: _FORCE_INLINE_ bool get_use_pixel_snap() const { return _pixel_snap; } +#ifdef TOOLS_ENABLED + _FORCE_INLINE_ void set_editor_hint(bool p_enabled) { editor_hint = p_enabled; } + _FORCE_INLINE_ bool is_editor_hint() const { return editor_hint; } +#else + _FORCE_INLINE_ void set_editor_hint(bool p_enabled) {} + _FORCE_INLINE_ bool is_editor_hint() const { return false; } +#endif + Dictionary get_version_info() const; Engine(); |
