diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-06-30 15:45:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 15:45:31 +0200 |
commit | daa055d479916b9fdb9b6cf3bc6aa822f35a2be6 (patch) | |
tree | 189564999355bf826399c89a7ec85a56b1043268 /core/object/object.h | |
parent | c5ad34d6cdb027a28014ad3ca82a56ce4e8096d8 (diff) | |
parent | 60ffadd133ba2d3c44539f17a64b16b3448efd01 (diff) | |
download | redot-engine-daa055d479916b9fdb9b6cf3bc6aa822f35a2be6.tar.gz |
Merge pull request #61867 from Bromeon/refactor/property-info
Diffstat (limited to 'core/object/object.h')
-rw-r--r-- | core/object/object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/object/object.h b/core/object/object.h index e065634000..1f6386e6b4 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -190,6 +190,14 @@ struct PropertyInfo { type(Variant::OBJECT), class_name(p_class_name) {} + explicit PropertyInfo(const GDNativePropertyInfo &pinfo) : + type((Variant::Type)pinfo.type), + name(pinfo.name), + class_name(pinfo.class_name), // can be null + hint((PropertyHint)pinfo.hint), + hint_string(pinfo.hint_string), // can be null + usage(pinfo.usage) {} + bool operator==(const PropertyInfo &p_info) const { return ((type == p_info.type) && (name == p_info.name) && |