//
// GJBaseGameLayer::playerTouchedRing from 0x1001e9218 to 0x1001e92dc (196 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e82e0
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8610
//
// 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 GJBaseGameLayer::playerTouchedRing(GJBaseGameLayer *a1, PlayerObject *a2, RingObject *a3)
{
int m_uniqueID; // [xsp+0h] [xbp-30h] BYREF
int *p_m_uniqueID; // [xsp+8h] [xbp-28h] BYREF
if ( !a3->m_isRingPoweredOn )
{
m_uniqueID = a3->m_uniqueID;
p_m_uniqueID = &m_uniqueID;
sub_100019F24(
(unsigned __int64)&a1->m_gameState.m_stateObjects,
&m_uniqueID,
(__int64)&unk_10063A31C,
&p_m_uniqueID)[3] = a3;
GJBaseGameLayer::gameEventTriggered(a1, OrbTouched, 0, 0);
}
PlayerObject::addToTouchedRings(a2, a3);
((void (__fastcall *)(RingObject *, _QWORD))a3->powerOnObject)(a3, a1->m_gameState.m_commandIndex);
if ( !PlayerObject::isFlying(a2) && !a3->m_claimTouch )
PlayerObject::ringJump(a2, a3, 0);
}