diff options
| author | Ricardo Buring <ricardo.buring@gmail.com> | 2023-01-01 21:27:08 +0100 |
|---|---|---|
| committer | Ricardo Buring <ricardo.buring@gmail.com> | 2023-01-01 21:27:08 +0100 |
| commit | d4e1dfe5dce4364baeb1781b0534909e1d895024 (patch) | |
| tree | 0d515f31ce923ff0353b386739a6a0eb99d4779d /include/godot_cpp | |
| parent | 3da6db4fe41b8f3d3aaeb0dc80f1556f83fd7fe6 (diff) | |
| download | redot-cpp-d4e1dfe5dce4364baeb1781b0534909e1d895024.tar.gz | |
Add conversions between Variant and ObjectID
Diffstat (limited to 'include/godot_cpp')
| -rw-r--r-- | include/godot_cpp/variant/variant.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/godot_cpp/variant/variant.hpp b/include/godot_cpp/variant/variant.hpp index 3d91a0a..6d26501 100644 --- a/include/godot_cpp/variant/variant.hpp +++ b/include/godot_cpp/variant/variant.hpp @@ -42,6 +42,8 @@ namespace godot { +class ObjectID; + class Variant { uint8_t opaque[GODOT_CPP_VARIANT_SIZE]{ 0 }; @@ -187,6 +189,7 @@ public: Variant(const StringName &v); Variant(const NodePath &v); Variant(const godot::RID &v); + Variant(const ObjectID &v); Variant(const Object *v); Variant(const Callable &v); Variant(const Signal &v); @@ -230,6 +233,7 @@ public: operator StringName() const; operator NodePath() const; operator godot::RID() const; + operator ObjectID() const; operator Object *() const; operator Callable() const; operator Signal() const; |
