//
// GJBaseGameLayer::destroyObject from 0x88b248 to 0x88b368 (288 bytes)
//
// 7 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x62f3ec
// > PlayerObject::collidedWithObjectInternal @ 0x62fe20
// > PlayerObject::collidedWithObjectInternal @ 0x62ff1c
// > PlayerObject::collidedWithObjectInternal @ 0x63027c
// > GJBaseGameLayer::collisionCheckObjects @ 0x88bde0
// > GJBaseGameLayer::collisionCheckObjects @ 0x88c178
// > ??> @ 0x2ab28
//
// 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 GJBaseGameLayer::destroyObject(GJBaseGameLayer *a1, GameObject *a2)
{
int v4; // w23
const cocos2d::CCPoint *v5; // x0
cocos2d::CCPoint v6; // [xsp+50h] [xbp+50h] BYREF
if ( a2->getType(a2) == Collectible && GameObject::shouldShowPickupEffects(a2) )
{
v4 = *(_DWORD *)(&a2[1]._cascadeOpacityEnabled + 3);
if ( v4 <= 0 )
{
GameObject::spawnDefaultPickupParticle(a2, a1);
}
else
{
v5 = a2->getPosition(a2);
cocos2d::CCPoint::CCPoint(&v6, v5);
GJBaseGameLayer::spawnParticleTrigger(a1, v4, &v6, 0.0, 1.0);
}
}
GameObject::playDestroyObjectAnim(a2, a1);
GameObject::destroyObject(a2);
if ( a2->getType(a2) == Breakable )
GJBaseGameLayer::gameEventTriggered(a1, DestroyBlock, 0, 0);
}