//
// PlayLayer::activatePlatformerEndTrigger from 0x313bfc to 0x313cc8 (204 bytes)
//
// 0 xrefs:
//
// 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 PlayLayer::activatePlatformerEndTrigger(PlayLayer *a1, EndTriggerGameObject *a2, std::vector *const a3)
{
int m_centerGroupID; // r1
GameObject *MainObject; // r0
cocos2d::CCPoint v7; // r1
bool v8; // r3
cocos2d::CCPoint v9; // [sp+1Ch] [bp-18h] BYREF
cocos2d::CCPoint v10; // [sp+24h] [bp-10h] BYREF
if ( !a1->m_player1->m_isDead && !a1->m_levelEndAnimationStarted )
{
a1->m_platformerEndTrigger = a2;
if ( a2->m_targetGroupID > 0 )
((void (__fastcall *)(PlayLayer *))a1->spawnGroup)(a1);
a1->m_levelEndAnimationStarted = 1;
UILayer::disableMenu(a1->m_uiLayer);
a2->getRealPosition(&v9, a2);
m_centerGroupID = a2->m_centerGroupID;
if ( m_centerGroupID > 0 )
{
MainObject = GJBaseGameLayer::tryGetMainObject(a1, m_centerGroupID);
if ( MainObject )
{
MainObject->getRealPosition(&v10, MainObject);
cocos2d::CCPoint::operator=(&v9, &v10);
}
}
cocos2d::CCPoint::CCPoint(&v10, &v9);
LODWORD(v7.x) = &v10;
LODWORD(v7.y) = a2->m_instant;
PlayLayer::playPlatformerEndAnimationToPos(a1, v7, v8);
}
}