A templated wrapper over CCArray, providing easy iteration and indexing. This will keep ownership of the given CCArray*.
Getting Started
Modding Tutorials
Geode Mods
Handbook
An Introduction to GD Modding (using Geode)
#include <Geode/utils/cocos.hpp>
CCArrayExt<GameObject*> objects = PlayLayer::get()->m_objects;
// Easy indexing, giving you the type you assigned
GameObject* myObj = objects[2];
// Easy iteration using C++ range-based for loops
for (auto* obj : objects) {
log::info("{}", obj->m_objectID);
}