mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add tests for resource duplication
This commit is contained in:
parent
342266cfd9
commit
6841b45552
7 changed files with 549 additions and 23 deletions
|
|
@ -654,6 +654,10 @@ bool Dictionary::is_typed_value() const {
|
|||
return _p->typed_value.type != Variant::NIL;
|
||||
}
|
||||
|
||||
bool Dictionary::is_same_instance(const Dictionary &p_other) const {
|
||||
return _p == p_other._p;
|
||||
}
|
||||
|
||||
bool Dictionary::is_same_typed(const Dictionary &p_other) const {
|
||||
return is_same_typed_key(p_other) && is_same_typed_value(p_other);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ public:
|
|||
bool is_typed() const;
|
||||
bool is_typed_key() const;
|
||||
bool is_typed_value() const;
|
||||
bool is_same_instance(const Dictionary &p_other) const;
|
||||
bool is_same_typed(const Dictionary &p_other) const;
|
||||
bool is_same_typed_key(const Dictionary &p_other) const;
|
||||
bool is_same_typed_value(const Dictionary &p_other) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue