summaryrefslogtreecommitdiffstats
path: root/core/object.h
diff options
context:
space:
mode:
authoryg2f <yoann@terminajones.com>2015-03-28 18:34:28 +0100
committeryg2f <yoann@terminajones.com>2015-03-28 18:34:28 +0100
commit3c67e22c3d0028df31e060ea28fb9f96b9f65cdf (patch)
tree9ecb02b43e619546133cd4dfeb270910c76bc4ce /core/object.h
parent7f8a0cddcfbd5744113de1826380310ad920360a (diff)
downloadredot-engine-3c67e22c3d0028df31e060ea28fb9f96b9f65cdf.tar.gz
add : bool Object.is_queued_for_deletion()
`object.is_queued_for_deletion()` return true if the object was `object.queue_free()` or `SceneTree.queue_delete(object)`.
Diffstat (limited to 'core/object.h')
-rw-r--r--core/object.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/object.h b/core/object.h
index eb885f5d20..849bfc8510 100644
--- a/core/object.h
+++ b/core/object.h
@@ -397,7 +397,6 @@ friend void postinitialize_handler(Object*);
protected:
-
virtual bool _use_builtin_script() const { return false; }
virtual void _initialize_typev() { initialize_type(); }
virtual bool _setv(const StringName& p_name,const Variant &p_property) { return false; };
@@ -589,6 +588,9 @@ public:
StringName XL_MESSAGE(const StringName& p_message) const; //translate message (internationalization)
StringName tr(const StringName& p_message) const; //translate message (alternative)
+ bool _is_queued_for_deletion; // set to true by SceneTree::queue_delete(), and returned by
+ bool is_queued_for_deletion() const;
+
_FORCE_INLINE_ void set_message_translation(bool p_enable) { _can_translate=p_enable; }
_FORCE_INLINE_ bool can_translate_messages() const { return _can_translate; }
Object();