//
// GJBaseGameLayer::canTouchObject from 0x85afd0 to 0x85b008 (56 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x88ba9c
// > ??> @ 0x65850
//
// 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
//
bool GJBaseGameLayer::canTouchObject(GJBaseGameLayer *a1, GameObject *a2)
{
int m_currentChannel; // w2
bool result; // w0
m_currentChannel = a1->m_gameState.m_currentChannel;
result = 1;
if ( m_currentChannel )
{
if ( a2->m_classType == Effect )
return LODWORD(a2[1].m_obRect.origin.x) == 0 || m_currentChannel == LODWORD(a2[1].m_obRect.origin.x);
}
return result;
}