mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -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);
|
||||
}
|
||||
|
||||
size_t count(K key) {
|
||||
return m_dict->allKeys(key)->count();
|
||||
bool contains(const Key& key) {
|
||||
return m_dict->objectForKey(key) != nullptr;
|
||||
}
|
||||
|
||||
size_t count(const Key& key) {
|
||||
return this->contains(key) ? 1 : 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue