summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/variant
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-09-17 09:58:45 -0500
committerDavid Snopek <dsnopek@gmail.com>2024-10-17 09:58:52 -0500
commit0602c3298651b7a914f23ae357d3e427cc65a82c (patch)
treebe5ba1d32fb72e0ce0a17f9486a3c0b475042cad /include/godot_cpp/variant
parent4131b7f95f5a4ec660484431b175e15d95aed8db (diff)
downloadredot-cpp-0602c3298651b7a914f23ae357d3e427cc65a82c.tar.gz
Directly get object instance ID from `Variant` and implement `Variant::get_validated_object()`
Diffstat (limited to 'include/godot_cpp/variant')
-rw-r--r--include/godot_cpp/variant/variant.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/godot_cpp/variant/variant.hpp b/include/godot_cpp/variant/variant.hpp
index b0d57fb..10aea96 100644
--- a/include/godot_cpp/variant/variant.hpp
+++ b/include/godot_cpp/variant/variant.hpp
@@ -264,6 +264,8 @@ public:
operator PackedColorArray() const;
operator PackedVector4Array() const;
+ Object *get_validated_object() const;
+
Variant &operator=(const Variant &other);
Variant &operator=(Variant &&other);
bool operator==(const Variant &other) const;