//
// GameObject::setAreaOpacity from 0x10025b92c to 0x10025b9a4 (120 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c74
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c98
//
// 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 GameObject::setAreaOpacity(GameObject *a1, float a2, float a3, int a4)
{
unsigned int m_areaOpacityRelated; // w21
if ( a1->m_areaOpacityIndex != a4 || a1->m_areaOpacityValue > a3 )
{
m_areaOpacityRelated = a1->m_areaOpacityRelated;
((void (__fastcall *)(GameObject *, _QWORD))a1->setOpacity)(
a1,
(unsigned int)(int)(float)((float)m_areaOpacityRelated * a2));
a1->m_areaOpacityRelated = m_areaOpacityRelated;
a1->m_areaOpacityIndex = a4;
a1->m_areaOpacityValue = a3;
}
}