aboutsummaryrefslogtreecommitdiff
path: root/core/engine.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry2017-08-13 16:21:45 +0200
committerIgnacio Etcheverry2017-08-19 01:03:12 +0200
commitfd69604bd9dc743494a7818f25f384cc7f521b33 (patch)
tree1235c83520faa5b29eba8484b941580f35a03cb5 /core/engine.h
parentff2cb35b90f5661d1bb5fb00fa657a9539449be0 (diff)
downloadgodot-fd69604bd9dc743494a7818f25f384cc7f521b33.tar.gz
godot-fd69604bd9dc743494a7818f25f384cc7f521b33.tar.zst
godot-fd69604bd9dc743494a7818f25f384cc7f521b33.zip
Diffstat (limited to 'core/engine.h')
-rw-r--r--core/engine.h11
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();