//
// GJValueTween::step from 0x85685c to 0x8568e8 (140 bytes)
//
// 4 xrefs:
// > GJGameState::updateTweenActions @ 0x8808a0
// > GJShaderState::timesyncShaderAction @ 0x9f85e8
// > GJShaderState::updateTweenActions @ 0x9f9bbc
// > ??> @ 0x81978
//
// 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 GJValueTween::step(GJValueTween *a1, float a2)
{
float m_duration; // s3
float m_deltaTime; // s1
float EasedValue; // s0
int m_easingType; // w0
float m_fromValue; // s4
float v8; // s2
if ( !a1->m_finished && !a1->m_disabled )
{
m_duration = a1->m_duration;
m_deltaTime = a2 + a1->m_deltaTime;
a1->m_deltaTime = m_deltaTime;
if ( m_deltaTime < m_duration )
EasedValue = m_deltaTime / m_duration;
else
EasedValue = 1.0;
m_easingType = a1->m_easingType;
if ( m_easingType > 0 )
{
EasedValue = GameToolbox::getEasedValue(EasedValue, m_easingType, a1->m_easingRate);
m_deltaTime = a1->m_deltaTime;
m_duration = a1->m_duration;
}
m_fromValue = a1->m_fromValue;
v8 = a1->m_toValue - a1->m_fromValue;
a1->m_finished = m_deltaTime >= m_duration;
a1->m_currentValue = m_fromValue + (float)(v8 * EasedValue);
}
}