//
// GJEffectManager::reset from 0x4a3f84 to 0x4a4032 (174 bytes)
//
// 5 xrefs:
// > PlayLayer::loadDefaultColors @ 0x31af36
// > LevelEditorLayer::onStopPlaytest @ 0x369426
// > LevelEditorLayer::onPlaytest @ 0x36ea48
// > LevelEditorLayer::updateGameObjects @ 0x3759c4
// > GJEffectManager::loadFromState @ 0x4a6a38
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJEffectManager::reset(GJEffectManager *a1)
{
int i; // r3
int j; // r3
cocos2d::CCDictionary *m_unkDict150; // r3
cocos2d::CCDictElement *m_pElements; // r3
cocos2d::CCDictElement *next; // r2
cocos2d::CCObject *m_pObject; // r3
cocos2d::CCDictElement *v8; // r1
std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::clear((int)&a1->m_unkMap288);
cocos2d::CCDictionary::removeAllObjects(a1->m_colorActionDict);
cocos2d::CCDictionary::removeAllObjects(a1->m_unkDict268);
cocos2d::CCDictionary::removeAllObjects(a1->m_unkObject148);
for ( i = 0; i != 1102; ++i )
a1->m_colorActionVector.m_start[i] = nullptr;
for ( j = 0; j != 10000; ++j )
a1->m_unkVector270.m_start[j] = nullptr;
m_unkDict150 = a1->m_unkDict150;
if ( m_unkDict150 )
{
m_pElements = m_unkDict150->m_pElements;
if ( m_pElements )
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
else
next = nullptr;
while ( m_pElements )
{
m_pObject = m_pElements->m_pObject;
m_pObject[5].m_uID = 1132396544;
LOWORD(m_pObject[5].m_nLuaID) = -1;
*(_WORD *)((char *)&m_pObject[5].m_nLuaID + 3) = -1;
BYTE2(m_pObject[5].m_nLuaID) = -1;
BYTE1(m_pObject[5].m_nTag) = -1;
m_pObject[5].m_eObjType = 0;
if ( next )
v8 = (cocos2d::CCDictElement *)next->hh.next;
else
v8 = nullptr;
m_pElements = next;
next = v8;
}
}
GJEffectManager::resetEffects(a1);
GJEffectManager::resetMoveActions(a1);
}