// // GJBaseGameLayer::playerTouchedTrigger from 0x48cb68 to 0x48cc68 (256 bytes) // // 1 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x492a96 // // 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 GJBaseGameLayer::playerTouchedTrigger(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3) { int m_uniqueID; // r3 GJBaseGameLayer *v7; // r0 int v8; // [sp+0h] [bp-1Ch] BYREF int v9; // [sp+4h] [bp-18h] std::vector v10; // [sp+8h] [bp-14h] BYREF if ( a3->m_objectID == 3640 ) a3->powerOnObject(a3, a1->m_gameState.m_commandIndex); if ( a3->m_isTouchTriggered ) { if ( a3->m_isSinglePTouch ) m_uniqueID = 0; else m_uniqueID = a2->m_uniqueID; v8 = a3->m_uniqueID; v9 = m_uniqueID; v7 = (GJBaseGameLayer *)std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::find( (int)&a1->m_gameState.m_activatedObjectIDs, &v8); if ( a3->m_isMultiTriggered ) { if ( v7 == (GJBaseGameLayer *)&a1->m_gameState.m_activatedObjectIDs.m_header ) GJEffectManager::removeTriggeredID(a1->m_effectManager, v8, v9); *(_DWORD *)std::map,int>::operator[](&a1->m_gameState.m_activatedObjectIDs.compare.pad, &v8) = a1->m_gameState.m_commandIndex; } if ( !GJEffectManager::hasBeenTriggered(a1->m_effectManager, v8, v9) ) { GJEffectManager::storeTriggeredID(a1->m_effectManager, v8, v9); if ( a3->m_objectID == 1268 ) { memset(&v10, 0, sizeof(v10)); SpawnTriggerGameObject::updateRemapKeys((SpawnTriggerGameObject *)a3, &v10); std::_Vector_base::~_Vector_base((void **)&v10.m_start); } a3->triggerObject(a3, a1, a2->m_uniqueID, nullptr); } ((void (__fastcall *)(EffectGameObject *, _DWORD))a3->triggerActivated)(a3, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source