//
// GJEffectManager::createFollowCommand from 0x8b296c to 0x8b2a30 (196 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::triggerFollowCommand @ 0x661364
// > EffectGameObject::triggerObject @ 0x76fbf0
// > ??> @ 0x87b70
//
// 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 GJEffectManager::createFollowCommand(
GJEffectManager *a1,
float a2,
float a3,
float a4,
int a5,
int a6,
int a7,
int a8)
{
std::vector *p_m_unkVector560; // x20
GroupCommandObject2 *m_finish; // x0
GroupCommandObject2 *v18; // x19
p_m_unkVector560 = &a1->m_unkVector560;
m_finish = a1->m_unkVector560.m_finish;
if ( m_finish == p_m_unkVector560->m_reserveEnd )
{
std::vector::_M_emplace_back_aux<>((char **)p_m_unkVector560);
v18 = a1->m_unkVector560.m_finish;
}
else
{
if ( m_finish )
{
GroupCommandObject2::GroupCommandObject2(m_finish);
m_finish = p_m_unkVector560->m_finish;
}
v18 = m_finish + 1;
p_m_unkVector560->m_finish = m_finish + 1;
}
GroupCommandObject2::reset(v18 - 1);
v18[-1].m_targetGroupID = a5;
v18[-1].m_centerGroupID = a6;
v18[-1].m_triggerUniqueID = a7;
v18[-1].m_controlID = a8;
GroupCommandObject2::runFollowCommand(v18 - 1, a2, a3, a4);
}