//
// EnhancedGameObject::activatedByPlayer from 0x353618 to 0x353646 (46 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 EnhancedGameObject::activatedByPlayer(EnhancedGameObject *a1, PlayerObject *a2)
{
bool (__fastcall *canMultiActivate)(EnhancedGameObject *__hidden, bool); // r3
canMultiActivate = a1->canMultiActivate;
a1->m_activated = 1;
if ( !((int (__fastcall *)(EnhancedGameObject *, bool))canMultiActivate)(a1, a2->m_isPlatformer) )
{
if ( a2->m_uniqueID == 1 )
a1->m_activatedByPlayer1 = 1;
else
a1->m_activatedByPlayer2 = 1;
}
}