//
// GJEffectManager::createPlayerFollowCommand from 0x8b2a30 to 0x8b2b08 (216 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::triggerPlayerFollowCommand @ 0x661394
// > EffectGameObject::triggerObject @ 0x76fe6c
// > ??> @ 0xa2690
//
// 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::createPlayerFollowCommand(
GJEffectManager *a1,
float a2,
float a3,
int a4,
float a5,
float a6,
int a7,
int a8,
int a9)
{
std::vector *p_m_unkVector560; // x20
GroupCommandObject2 *m_finish; // x0
GroupCommandObject2 *v19; // x19
int v20; // [xsp+68h] [xbp+68h]
int v21; // [xsp+68h] [xbp+68h]
int v22; // [xsp+68h] [xbp+68h]
p_m_unkVector560 = &a1->m_unkVector560;
m_finish = a1->m_unkVector560.m_finish;
if ( m_finish == p_m_unkVector560->m_reserveEnd )
{
v22 = a4;
std::vector::_M_emplace_back_aux<>((char **)p_m_unkVector560);
v19 = a1->m_unkVector560.m_finish;
a4 = v22;
}
else
{
if ( m_finish )
{
v20 = a4;
GroupCommandObject2::GroupCommandObject2(m_finish);
m_finish = p_m_unkVector560->m_finish;
a4 = v20;
}
v19 = m_finish + 1;
p_m_unkVector560->m_finish = m_finish + 1;
}
v21 = a4;
GroupCommandObject2::reset(v19 - 1);
v19[-1].m_targetGroupID = a7;
v19[-1].m_triggerUniqueID = a8;
v19[-1].m_controlID = a9;
GroupCommandObject2::runPlayerFollowCommand(v19 - 1, a2, a3, v21, a5, a6);
}