// // LevelEditorLayer::recreateGroups from 0x36e74e to 0x36e886 (312 bytes) // // 3 xrefs: // > LevelEditorLayer::onResumePlaytest @ 0x36e92e // > LevelEditorLayer::onPlaytest @ 0x36eb90 // > EditorUI::dynamicGroupUpdate @ 0x3a6352 // // 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 LevelEditorLayer::recreateGroups(LevelEditorLayer *a1) { int v2; // r5 cocos2d::CCArray *v3; // r0 cocos2d::CCArray *v4; // r0 cocos2d::CCArray *v5; // r0 cocos2d::CCDictionary *m_triggerGroupsDict; // r3 unsigned int v7; // r6 cocos2d::CCArray *AllObjects; // r8 cocos2d::CCDictElement *m_pElements; // r3 cocos2d::CCDictElement *next; // r5 cocos2d::CCDictElement *v11; // r2 LabelGameObject *v12; // r5 int m_objectID; // r3 int i; // r7 int GroupID; // r0 GJBaseGameLayer::resetMoveOptimizedValue(a1); v2 = 0; 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_labelObjects); 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_timeLabelObjects); cocos2d::CCArray::removeAllObjects(a1->m_collisionBlocks); cocos2d::CCArray::addObject(a1->m_collisionBlocks, a1->m_player1CollisionBlock); cocos2d::CCArray::addObject(a1->m_collisionBlocks, a1->m_player2CollisionBlock); do { v3 = a1->m_groups.m_start[v2]; if ( v3 ) cocos2d::CCArray::removeAllObjects(v3); v4 = a1->m_staticGroups.m_start[v2]; if ( v4 ) cocos2d::CCArray::removeAllObjects(v4); v5 = a1->m_optimizedGroups.m_start[v2]; if ( v5 ) cocos2d::CCArray::removeAllObjects(v5); ++v2; } while ( v2 != 10000 ); m_triggerGroupsDict = a1->m_triggerGroupsDict; if ( m_triggerGroupsDict ) { m_pElements = m_triggerGroupsDict->m_pElements; if ( m_pElements ) next = (cocos2d::CCDictElement *)m_pElements->hh.next; else next = nullptr; while ( m_pElements ) { cocos2d::CCArray::removeAllObjects((cocos2d::CCArray *)m_pElements->m_pObject); if ( next ) v11 = (cocos2d::CCDictElement *)next->hh.next; else v11 = nullptr; m_pElements = next; next = v11; } } v7 = 0; AllObjects = LevelEditorLayer::getAllObjects(a1); while ( v7 < cocos2d::CCArray::count(AllObjects) ) { v12 = (LabelGameObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v7); if ( v12->m_groupCount > 0 ) { for ( i = 0; i < v12->m_groupCount; ++i ) { GroupID = GameObject::getGroupID(v12, i); a1->addToGroup(a1, v12, GroupID, 1); } } m_objectID = v12->m_objectID; if ( m_objectID == 1615 ) { GJBaseGameLayer::addObjectCounter(a1, v12); } else if ( m_objectID == 1816 && v12->m_isDynamicBlock ) { cocos2d::CCArray::addObject(a1->m_collisionBlocks, v12); } ++v7; } if ( a1->m_levelSettings->m_sortGroups ) GJBaseGameLayer::sortAllGroupsX(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source