//
// GJValueTween::step from 0x1001d9bd4 to 0x1001d9c50 (124 bytes)
//
// 3 xrefs:
// > GJGameState::updateTweenActions @ 0x1001d9db0
// > GJShaderState::updateTweenActions @ 0x10026d880
// > GJShaderState::timesyncShaderAction @ 0x10026d96c
//
// 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 GJValueTween::step(GJValueTween *a1, float a2)
{
float m_duration; // s1
float m_deltaTime; // s2
float EasedValue; // s0
int m_easingType; // w0
if ( !a1->m_finished && !a1->m_disabled )
{
m_duration = a1->m_duration;
m_deltaTime = a1->m_deltaTime + a2;
a1->m_deltaTime = m_deltaTime;
EasedValue = m_deltaTime / m_duration;
if ( m_deltaTime >= m_duration )
EasedValue = 1.0;
m_easingType = a1->m_easingType;
if ( m_easingType >= 1 )
{
EasedValue = GameToolbox::getEasedValue(EasedValue, m_easingType, a1->m_easingRate);
m_duration = a1->m_duration;
m_deltaTime = a1->m_deltaTime;
}
a1->m_currentValue = a1->m_fromValue + (float)((float)(a1->m_toValue - a1->m_fromValue) * EasedValue);
a1->m_finished = m_deltaTime >= m_duration;
}
}