//
// GroupCommandObject2::step from 0xa6b8f8 to 0xa6b9cc (212 bytes)
//
// 5 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x8b5c9c
// > GJEffectManager::prepareMoveActions @ 0x8b5ccc
// > GJEffectManager::prepareMoveActions @ 0x8b5ce0
// > GroupCommandObject2::stepTransformCommand @ 0xa6ba44
// > ??> @ 0x46200
//
// 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::step(GroupCommandObject2 *a1, float a2)
{
_BOOL4 m_finished; // w1
double v3; // d1
int m_actionType1; // w1
GroupCommandObject2 *v5; // x19
double m_duration; // d0
float m_actionValue1; // s0
int m_actionType2; // w1
float m_deltaTimeInFloat; // s0
float m_actionValue2; // s0
if ( a1->m_disabled )
return;
m_finished = a1->m_finished;
v3 = a2 + a1->m_deltaTime;
a1->m_deltaTime = v3;
if ( m_finished )
return;
if ( a1->m_alreadyUpdated )
{
m_actionType1 = a1->m_actionType1;
v5 = a1;
a1->m_alreadyUpdated = 0;
if ( !m_actionType1 )
goto LABEL_5;
LABEL_10:
m_actionValue1 = v5->m_actionValue1;
GroupCommandObject2::updateAction(v5, m_actionType1, m_actionValue1);
m_actionType2 = v5->m_actionType2;
if ( m_actionType2 )
{
m_actionValue2 = v5->m_actionValue2;
GroupCommandObject2::updateAction(v5, m_actionType2, m_actionValue2);
}
m_deltaTimeInFloat = v5->m_deltaTimeInFloat;
if ( m_deltaTimeInFloat > 0.0 && m_deltaTimeInFloat >= v5->m_duration )
goto LABEL_7;
return;
}
m_actionType1 = a1->m_actionType1;
v5 = a1;
a1->m_deltaTimeInFloat = a1->m_deltaTimeInFloat + a2;
if ( m_actionType1 )
goto LABEL_10;
LABEL_5:
m_duration = v5->m_duration;
if ( v3 >= m_duration && m_duration != -1.0 )
LABEL_7:
v5->m_finished = 1;
}