//
// EnhancedGameObject::activatedByPlayer from 0x641c10 to 0x641c7c (108 bytes)
//
// 43 xrefs:
// > ??> @ 0xc7818
// > ??> @ 0x1154270
// > ??> @ 0x1162420
// > ??> @ 0x1162c20
// > ??> @ 0x1163420
// > ??> @ 0x1163c20
// > ??> @ 0x1164420
// > ??> @ 0x1164c20
// > ??> @ 0x1165420
// > ??> @ 0x11663f0
// > ??> @ 0x1166bf0
// > ??> @ 0x11673f0
// > ??> @ 0x1167bf0
// > ??> @ 0x11683f0
// > ??> @ 0x1168c30
// > ??> @ 0x1169430
// > ??> @ 0x1169c30
// > ??> @ 0x116a430
// > ??> @ 0x116ac30
// > ??> @ 0x116b440
// > ??> @ 0x116bc40
// > ??> @ 0x116c440
// > ??> @ 0x116cc40
// > ??> @ 0x116d440
// > ??> @ 0x116dc40
// > ??> @ 0x116e440
// > ??> @ 0x116ec40
// > ??> @ 0x116f440
// > ??> @ 0x116fc40
// > ??> @ 0x1170440
// > ??> @ 0x1170c40
// > ??> @ 0x1171440
// > ??> @ 0x1171c40
// > ??> @ 0x1172440
// > ??> @ 0x1172c40
// > ??> @ 0x1173440
// > ??> @ 0x1173c40
// > ??> @ 0x1174440
// > ??> @ 0x1174c40
// > ??> @ 0x1175440
// > ??> @ 0x1175c40
// > ??> @ 0x1176440
// > ??> @ 0x1176c40
//
// 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); // x2
_BOOL8 m_isPlatformer; // x1
canMultiActivate = a1->canMultiActivate;
m_isPlatformer = a2->m_isPlatformer;
a1->m_activated = 1;
if ( !canMultiActivate(a1, m_isPlatformer) )
{
if ( a2->m_uniqueID == 1 )
a1->m_activatedByPlayer1 = 1;
else
a1->m_activatedByPlayer2 = 1;
}
}