//
// SpawnTriggerGameObject::triggerObject from 0x1001d3100 to 0x1001d31ba (186 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c7578
//
// 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 SpawnTriggerGameObject::triggerObject(
SpawnTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
float m_spawnDelay; // xmm2_4
float v5; // xmm0_4
m_spawnDelay = a1->m_spawnDelay;
if ( a2 && a1->m_delayRange != 0.0 && (!a2->m_isEditor || a2->m_playbackMode == Playing) )
m_spawnDelay = fmaxf(0.0, a1->m_spawnDelay + (float)(GameToolbox::fast_rand_minus1_1() * a1->m_delayRange));
v5 = m_spawnDelay - a1->m_currentDelay;
GJBaseGameLayer::spawnGroupTriggered(
a2,
a1->m_targetGroupID,
v5,
a1->m_spawnOrdered,
&a1->m_remapKeys,
a1->m_uniqueID,
a1->m_controlID);
a1->m_currentDelay = 0.0;
}