Adds editor_hint to Engine class
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user