// // LevelEditorLayer::recreateGroups from 0x100361d38 to 0x100361ee4 (428 bytes) // // 3 xrefs: // > LevelEditorLayer::onPlaytest @ 0x100362db0 // > LevelEditorLayer::onResumePlaytest @ 0x1003631d0 // > EditorUI::dynamicGroupUpdate @ 0x1003f3068 // // 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 __fastcall LevelEditorLayer::recreateGroups(LevelEditorLayer *a1) { __int64 i; // x20 cocos2d::CCArray *v3; // x0 cocos2d::CCArray *v4; // x0 cocos2d::CCArray *v5; // x0 cocos2d::CCDictionary *m_triggerGroupsDict; // x8 cocos2d::CCDictElement *m_pElements; // x8 cocos2d::CCDictElement *next; // x20 cocos2d::CCArray *m_objects; // x20 unsigned int v10; // w21 LabelGameObject *v11; // x22 int v12; // w23 __int64 GroupID; // x0 int m_objectID; // w8 GJBaseGameLayer::resetMoveOptimizedValue(a1); sub_10001A230((__int64)&a1->m_labelObjects); sub_10001A230((__int64)&a1->m_timeLabelObjects); sub_10024A45C((__int64)a1->m_collisionBlocks); sub_10024A2D0((__int64)a1->m_collisionBlocks); sub_10024A2D0((__int64)a1->m_collisionBlocks); for ( i = 0; i != 10000; ++i ) { v3 = a1->m_groups.__begin_[i]; if ( v3 ) sub_10024A45C((__int64)v3); v4 = a1->m_staticGroups.__begin_[i]; if ( v4 ) sub_10024A45C((__int64)v4); v5 = a1->m_optimizedGroups.__begin_[i]; if ( v5 ) sub_10024A45C((__int64)v5); } m_triggerGroupsDict = a1->m_triggerGroupsDict; if ( m_triggerGroupsDict ) { m_pElements = m_triggerGroupsDict->m_pElements; if ( m_pElements ) { do { next = (cocos2d::CCDictElement *)m_pElements->hh.next; sub_10024A45C((__int64)m_pElements->m_pObject); m_pElements = next; } while ( next ); } } m_objects = a1->m_objects; if ( (unsigned int)sub_10024A36C((__int64)m_objects) ) { v10 = 0; do { v11 = (LabelGameObject *)sub_10024A388((__int64)m_objects, v10); if ( v11->m_groupCount >= 1 ) { v12 = 0; do { GroupID = GameObject::getGroupID(v11, v12); ((void (__fastcall *)(LevelEditorLayer *, LabelGameObject *, __int64, __int64))a1->addToGroup)( a1, v11, GroupID, 1); ++v12; } while ( v12 < v11->m_groupCount ); } m_objectID = v11->m_objectID; if ( m_objectID == 1816 ) { if ( v11->m_isDynamicBlock ) sub_10024A2D0((__int64)a1->m_collisionBlocks); } else if ( m_objectID == 1615 ) { GJBaseGameLayer::addObjectCounter(a1, v11); } ++v10; } while ( v10 < (unsigned int)sub_10024A36C((__int64)m_objects) ); } if ( a1->m_levelSettings->m_sortGroups ) GJBaseGameLayer::sortAllGroupsX(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source