mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
oops missed this one
This commit is contained in:
parent
79e14e4be3
commit
aecd7cc186
1 changed files with 6 additions and 2 deletions
|
@ -1096,8 +1096,12 @@ namespace geode::cocos {
|
||||||
return CCDictEntry<Key, ValuePtr>(key, m_dict);
|
return CCDictEntry<Key, ValuePtr>(key, m_dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t count(K key) {
|
bool contains(const Key& key) {
|
||||||
return m_dict->allKeys(key)->count();
|
return m_dict->objectForKey(key) != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t count(const Key& key) {
|
||||||
|
return this->contains(key) ? 1 : 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue