//
// GJBaseGameLayer::opacityForObject from 0x1001510c0 to 0x10015114a (138 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008c0648
// > ??> @ 0x1008c1878
//
// 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 __fastcall GJBaseGameLayer::opacityForObject(GJBaseGameLayer *a1, GameObject *a2)
{
float result; // xmm0_4
int v3; // r15d
GJEffectManager *m_effectManager; // r12
int GroupID; // eax
if ( a2->m_groupCount <= 0 )
return 1.0;
result = 1.0;
v3 = 0;
do
{
m_effectManager = a1->m_effectManager;
GroupID = GameObject::getGroupID(a2, v3);
result = result * GJEffectManager::opacityModForGroup(m_effectManager, GroupID);
++v3;
}
while ( v3 < a2->m_groupCount );
return result;
}