Add missing enum & ctor for PackedVector4Array implementation
parent
0efc6cddbc
commit
78b63203d4
|
@ -100,6 +100,7 @@ public:
|
|||
PACKED_VECTOR2_ARRAY,
|
||||
PACKED_VECTOR3_ARRAY,
|
||||
PACKED_COLOR_ARRAY,
|
||||
PACKED_VECTOR4_ARRAY,
|
||||
|
||||
VARIANT_MAX
|
||||
};
|
||||
|
@ -212,6 +213,7 @@ public:
|
|||
Variant(const PackedVector2Array &v);
|
||||
Variant(const PackedVector3Array &v);
|
||||
Variant(const PackedColorArray &v);
|
||||
Variant(const PackedVector4Array &v);
|
||||
~Variant();
|
||||
|
||||
operator bool() const;
|
||||
|
@ -260,6 +262,7 @@ public:
|
|||
operator PackedVector2Array() const;
|
||||
operator PackedVector3Array() const;
|
||||
operator PackedColorArray() const;
|
||||
operator PackedVector4Array() const;
|
||||
|
||||
Variant &operator=(const Variant &other);
|
||||
Variant &operator=(Variant &&other);
|
||||
|
|
|
@ -248,6 +248,10 @@ Variant::Variant(const PackedColorArray &v) {
|
|||
from_type_constructor[PACKED_COLOR_ARRAY](_native_ptr(), v._native_ptr());
|
||||
}
|
||||
|
||||
Variant::Variant(const PackedVector4Array &v) {
|
||||
from_type_constructor[PACKED_VECTOR4_ARRAY](_native_ptr(), v._native_ptr());
|
||||
}
|
||||
|
||||
Variant::~Variant() {
|
||||
internal::gdextension_interface_variant_destroy(_native_ptr());
|
||||
}
|
||||
|
@ -506,6 +510,10 @@ Variant::operator PackedColorArray() const {
|
|||
return PackedColorArray(this);
|
||||
}
|
||||
|
||||
Variant::operator PackedVector4Array() const {
|
||||
return PackedVector4Array(this);
|
||||
}
|
||||
|
||||
Variant &Variant::operator=(const Variant &other) {
|
||||
clear();
|
||||
internal::gdextension_interface_variant_new_copy(_native_ptr(), other._native_ptr());
|
||||
|
|
Loading…
Reference in New Issue