//
// GroupCommandObject2::updateAction from 0x1004ecf50 to 0x1004ed09c (332 bytes)
//
// 4 xrefs:
// > GroupCommandObject2::step @ 0x1004ececd
// > GroupCommandObject2::step @ 0x1004eceee
// > GroupCommandObject2::stepTransformCommand @ 0x1004ed12f
// > GroupCommandObject2::stepTransformCommand @ 0x1004ed150
//
// 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 GroupCommandObject2::updateAction(GroupCommandObject2 *a1, int a2, float a3)
{
double v3; // xmm1_8
float v4; // xmm0_4
float m_easingRate; // xmm1_4
float v6; // xmm1_4
double v7; // xmm0_8
double v8; // xmm1_8
double v9; // xmm0_8
double v10; // xmm1_8
v3 = a1->m_deltaTimeInFloat / fmax(0.0000001192092895507812, a1->m_duration);
v4 = 1.0;
if ( v3 < 1.0 )
{
v4 = 0.0;
if ( v3 > 0.0 )
v4 = v3;
}
m_easingRate = a1->m_easingRate;
v6 = a3 - (float)((float)(1.0 - GameToolbox::getEasedValue(v4, a1->m_easingType, m_easingRate)) * a3);
switch ( a2 )
{
case 1:
if ( !a1->m_lockedInX )
{
v7 = v6;
v8 = v6 - a1->m_currentXOffset;
a1->m_deltaX = a1->m_deltaX + v8;
a1->m_deltaX_3 = v8 + a1->m_deltaX_3;
a1->m_currentXOffset = v7;
}
break;
case 2:
if ( !a1->m_lockedInY )
{
v9 = v6;
v10 = v6 - a1->m_currentYOffset;
a1->m_deltaY = a1->m_deltaY + v10;
a1->m_deltaY_3 = v10 + a1->m_deltaY_3;
a1->m_currentYOffset = v9;
}
break;
case 3:
case 4:
a1->m_currentRotateOrTransformDelta = v6
- a1->m_currentRotateOrTransformValue
+ a1->m_currentRotateOrTransformDelta;
a1->m_currentRotateOrTransformValue = v6;
break;
default:
return;
}
}