//
// GroupCommandObject2::updateEffectAction from 0x58a5c8 to 0x58a658 (144 bytes)
//
// 1 xrefs:
// > GroupCommandObject2::updateAction @ 0x58a728
//
// 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 GroupCommandObject2::updateEffectAction(GroupCommandObject2 *a1, float a2, int a3)
{
double m_deltaX; // d5
double v4; // d6
double m_deltaY; // d5
double v6; // d6
double m_currentRotateOrTransformDelta; // d6
double v8; // d5
switch ( a3 )
{
case 1:
if ( !a1->m_lockedInX )
{
m_deltaX = a1->m_deltaX;
v4 = a2 - a1->m_currentXOffset;
a1->m_currentXOffset = a2;
a1->m_deltaX = m_deltaX + v4;
a1->m_deltaX_3 = a1->m_deltaX_3 + v4;
}
break;
case 2:
if ( !a1->m_lockedInY )
{
m_deltaY = a1->m_deltaY;
v6 = a2 - a1->m_currentYOffset;
a1->m_currentYOffset = a2;
a1->m_deltaY = m_deltaY + v6;
a1->m_deltaY_3 = a1->m_deltaY_3 + v6;
}
break;
case 3:
case 4:
m_currentRotateOrTransformDelta = a1->m_currentRotateOrTransformDelta;
v8 = a2 - a1->m_currentRotateOrTransformValue;
a1->m_currentRotateOrTransformValue = a2;
a1->m_currentRotateOrTransformDelta = m_currentRotateOrTransformDelta + v8;
break;
default:
return;
}
}