A templated wrapper over CCDictionary, providing easy iteration and indexing. This will keep ownership of the given CCDictionary*.
Getting Started
Modding Tutorials
Geode Mods
Handbook
An Introduction to GD Modding (using Geode)
#include <Geode/utils/cocos.hpp>
A templated wrapper over CCDictionary, providing easy iteration and indexing. This will keep ownership of the given CCDictionary*.
Key
ValuePtr
CCDictionaryExt<std::string, GJGameLevel*> levels = getSomeDict();
// Easy indexing, giving you the type you assigned
GJGameLevel* myLvl = levels["Cube Adventures"];
// Easy iteration using C++ range-based for loops
for (auto [name, level] : levels) {
log::info("{}: {}", name, level->m_levelID);
}