//
// OpacityEffectAction::step from 0x10000d394 to 0x10000d3f8 (100 bytes)
//
// 2 xrefs:
// > GJEffectManager::updateOpacityEffects @ 0x10000fed0
// > LevelEditorLayer::activateTriggerEffect @ 0x100361220
//
// 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 OpacityEffectAction::step(OpacityEffectAction *a1, float a2)
{
float v2; // s0
float v3; // s0
float m_duration; // s1
float v5; // s2
if ( !a1->m_finished && !a1->m_disabled )
{
v2 = a1->m_deltaTime + a2;
a1->m_deltaTime = v2;
v3 = v2 + a1->m_deltaTimeRelated;
m_duration = a1->m_duration;
v5 = 1.0;
if ( v3 < a1->m_duration )
{
v5 = 0.0;
if ( v3 > 0.0 )
v5 = v3 / m_duration;
}
a1->m_currentValue = a1->m_fromValue + (float)((float)(a1->m_toValue - a1->m_fromValue) * v5);
a1->m_finished = v3 >= m_duration;
}
}