// // LevelEditorLayer::removeSpecial from 0x10035b5bc to 0x10035b968 (940 bytes) // // 8 xrefs: // > LevelEditorLayer::removeObject @ 0x10035b5a0 // > LevelEditorLayer::removeSpecial @ 0x10035b71c // > LevelEditorLayer::removeAllObjects @ 0x10035ba00 // > LevelEditorLayer::handleAction @ 0x10035becc // > LevelEditorLayer::handleAction @ 0x10035bf2c // > LevelEditorLayer::refreshSpecial @ 0x10035e5c8 // > EditorUI::onCreateObject @ 0x1003eb5f8 // > EditorUI::createNewKeyframeAnim @ 0x1003f35f8 // // 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::removeSpecial(LevelEditorLayer *a1, GameObject *a2) { int v4; // w21 float v5; // s0 int m_objectID; // w8 int v7; // w21 float v8; // s0 cocos2d::CCArray *m_particleObjects; // x0 GameObject *v10; // x21 float v11; // s8 DrawGridLayer *m_drawGridLayer; // x21 int v13; // w8 cocos2d::CCArray *m_pulseTriggers; // x0 EffectGameObject *m_playbackObject; // x8 DrawGridLayer *v16; // x8 __int64 v17; // [xsp+0h] [xbp-50h] BYREF __int64 v18; // [xsp+8h] [xbp-48h] BYREF if ( !a2->m_isStartPos ) { v4 = a1->m_objectCount.random + ~a1->m_objectCount.seed; a1->m_objectCount.value = v4; v5 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a1->m_objectCount.seed = (int)v5; a1->m_objectCount.random = v4 + (int)v5; } m_objectID = a2->m_objectID; if ( m_objectID > 2064 ) { if ( m_objectID == 2065 ) { m_particleObjects = a1->m_particleObjects; } else { if ( m_objectID != 3032 ) goto LABEL_16; GJBaseGameLayer::removeKeyframe(a1, (KeyframeGameObject *)a2); m_particleObjects = a1->m_keyframeObjects; } sub_10024A444((__int64)m_particleObjects); } else if ( m_objectID == 747 ) { v10 = *(GameObject **)&a2[1].m_sQuad.bl.vertices.y; if ( v10 ) { cocos2d::CCObject::retain(*(cocos2d::CCObject **)&a2[1].m_sQuad.bl.vertices.y); ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))v10->getStartPos)(&v18, v10); v11 = *((float *)&v18 + 1); ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a2->getStartPos)(&v17, a2); a2[1].m_sQuad.bl.texCoords.u = v11 - *((float *)&v17 + 1); if ( !a1->m_removingAll ) { ((void (__fastcall *)(GameObject *, __int64))v10->deactivateObject)(v10, 1); GJBaseGameLayer::removeObjectFromSection(a1, v10); LevelEditorLayer::removeSpecial(a1, v10); a1->m_unk3b22 = 1; } *(_QWORD *)&a2[1].m_sQuad.bl.vertices.y = 0; cocos2d::CCObject::release(v10); } } else if ( m_objectID == 1329 ) { v7 = a1->m_coinCount.random + ~a1->m_coinCount.seed; a1->m_coinCount.value = v7; v8 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a1->m_coinCount.seed = (int)v8; a1->m_coinCount.random = v7 + (int)v8; } LABEL_16: if ( a2->m_dontIgnoreDuration ) sub_1000229D0(&a2[1].m_obOffsetPosition.y, (double *)&dword_10086E330); if ( a2->m_isTrigger ) { m_drawGridLayer = a1->m_drawGridLayer; sub_10024A444((__int64)m_drawGridLayer->m_effectGameObjects); m_drawGridLayer->m_sortEffects = 1; } if ( a2->m_classType == Effect ) LevelEditorLayer::tryUpdateSpeedObject(a1, (EffectGameObject *)a2, 1); v13 = a2->m_objectID; if ( v13 <= 1911 ) { if ( v13 <= 1267 ) { if ( v13 != 901 ) { if ( v13 == 1006 ) { m_pulseTriggers = a1->m_pulseTriggers; goto LABEL_45; } if ( v13 == 1007 ) { m_pulseTriggers = a1->m_alphaTriggers; LABEL_45: sub_10024A444((__int64)m_pulseTriggers); goto LABEL_46; } LABEL_36: if ( !GameObject::isColorTrigger(a2) ) goto LABEL_46; m_pulseTriggers = a1->m_colorTriggers; goto LABEL_45; } LABEL_41: m_pulseTriggers = a1->m_moveTriggers; goto LABEL_45; } if ( (unsigned int)(v13 - 1346) < 2 ) goto LABEL_41; if ( v13 != 1268 ) { if ( v13 != 1814 ) goto LABEL_36; goto LABEL_41; } goto LABEL_42; } if ( v13 <= 2067 ) { if ( v13 != 1912 ) { if ( v13 == 2016 ) { m_pulseTriggers = a1->m_cameraGuideTriggers; goto LABEL_45; } if ( v13 != 2067 ) goto LABEL_36; goto LABEL_41; } LABEL_42: m_pulseTriggers = a1->m_spawnTriggers; goto LABEL_45; } if ( v13 == 2068 ) goto LABEL_42; if ( v13 != 3642 ) { if ( v13 != 3016 ) goto LABEL_36; goto LABEL_41; } v16 = a1->m_drawGridLayer; LODWORD(v18) = a2->m_uniqueID; sub_10001B104(&v16->m_audioLineObjects.__table_.__bucket_list_.__ptr_.__value_, (int *)&v18); LABEL_46: if ( a2->m_isSpawnOrderTrigger ) { sub_10024A444((__int64)a1->m_spawnOrderObjects); a1->m_spawnOrderObjectsChanged = 1; } if ( a2->m_activateTriggerInEditor || ((unsigned int (__fastcall *)(GameObject *))a2->isSpecialSpawnObject)(a2) ) sub_10024A444((__int64)a1->m_playtestTriggers); if ( a2->m_dontIgnoreDuration ) sub_10024A444((__int64)a1->m_durationObjects); m_playbackObject = a1->m_playbackObject; if ( m_playbackObject && m_playbackObject->m_uniqueID == a2->m_uniqueID ) a1->m_playbackObject = nullptr; sub_10024A444((__int64)a1->m_objects); GJBaseGameLayer::removeFromGroupParents(a1, a2); GJBaseGameLayer::removeFromGroups(a1, a2); GJBaseGameLayer::removeFromStickyGroup(a1, a2); a1->m_unk3b22 = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source