//
// GJBaseGameLayer::opacityForObject from 0x46c18c to 0x46c1d6 (74 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
//
float GJBaseGameLayer::opacityForObject(GJBaseGameLayer *a1, GameObject *a2)
{
float v4; // s16
int i; // r4
GJEffectManager *m_effectManager; // r7
int GroupID; // r0
v4 = 1.0;
if ( a2->m_groupCount > 0 )
{
for ( i = 0; i < a2->m_groupCount; ++i )
{
m_effectManager = a1->m_effectManager;
GroupID = GameObject::getGroupID(a2, i);
v4 = v4 * GJEffectManager::opacityModForGroup(m_effectManager, GroupID);
}
}
return v4;
}