summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/variant/variant.hpp
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-10-29 13:10:12 -0500
committerGitHub <noreply@github.com>2024-10-29 13:10:12 -0500
commitfa3dfa0e3ca2a797c793c2744e10e3e11111d05f (patch)
tree979737f74727445436ae851a3026e329c8fd7ba2 /include/godot_cpp/variant/variant.hpp
parent7fca5458854c30fed862609cf516910e432508c1 (diff)
parent0602c3298651b7a914f23ae357d3e427cc65a82c (diff)
downloadredot-cpp-fa3dfa0e3ca2a797c793c2744e10e3e11111d05f.tar.gz
Merge pull request #1591 from dsnopek/variant-object-instance-id
Directly get object instance ID from `Variant` and implement `Variant::get_validated_object()`
Diffstat (limited to 'include/godot_cpp/variant/variant.hpp')
-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;