//
// RandTriggerGameObject::triggerObject from 0x1003899ec to 0x100389aa8 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007fff68
//
// 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 RandTriggerGameObject::triggerObject(
RandTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
int RandomGroupID; // w21
std::vector __p; // [xsp+8h] [xbp-38h] BYREF
if ( a1->m_objectID == 2068 )
{
RandomGroupID = RandTriggerGameObject::getRandomGroupID(a1);
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJBaseGameLayer::spawnGroupTriggered(a2, RandomGroupID, 0.0, 0, &__p, a1->m_uniqueID, a1->m_controlID);
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
}
else
{
EffectGameObject::triggerObject(a1, a2, a3, a4);
}
}