diff options
author | David Snopek <dsnopek@gmail.com> | 2024-10-29 13:10:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 13:10:12 -0500 |
commit | fa3dfa0e3ca2a797c793c2744e10e3e11111d05f (patch) | |
tree | 979737f74727445436ae851a3026e329c8fd7ba2 /include/godot_cpp/variant/variant.hpp | |
parent | 7fca5458854c30fed862609cf516910e432508c1 (diff) | |
parent | 0602c3298651b7a914f23ae357d3e427cc65a82c (diff) | |
download | redot-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.hpp | 2 |
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; |