//
// ItemTriggerGameObject::triggerObject from 0x100394c7c to 0x100394d48 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x100805878
//
// 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 ItemTriggerGameObject::triggerObject(
ItemTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
int m_objectID; // w8
std::vector __p; // [xsp+8h] [xbp-28h] BYREF
m_objectID = a1->m_objectID;
switch ( m_objectID )
{
case 3641:
GJBaseGameLayer::activatePersistentItemTrigger(a2, a1);
break;
case 3620:
memset(&__p, 0, sizeof(__p));
if ( a4 )
sub_100017EB4((__int64 *)&__p, a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);
GJBaseGameLayer::activateItemCompareTrigger(a2, a1, &__p);
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
break;
case 3619:
GJBaseGameLayer::activateItemEditTrigger(a2, a1);
break;
default:
EffectGameObject::triggerObject(a1, a2, a3, a4);
break;
}
}