// // GJBaseGameLayer::gameEventTriggered from 0x1001e45e4 to 0x1001e473c (344 bytes) // // 37 xrefs: // > PlayLayer::processCheckpoints @ 0x10011f558 // > PlayLayer::resetLevel @ 0x1001221ac // > GJBaseGameLayer::teleportPlayer @ 0x1001e4244 // > GJBaseGameLayer::gameEventTriggered @ 0x1001e466c // > GJBaseGameLayer::playerWillSwitchMode @ 0x1001e6a1c // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e85b8 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8bc8 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8cb8 // > GJBaseGameLayer::bumpPlayer @ 0x1001e9098 // > GJBaseGameLayer::bumpPlayer @ 0x1001e90ac // > GJBaseGameLayer::gravBumpPlayer @ 0x1001e91fc // > GJBaseGameLayer::playerTouchedRing @ 0x1001e9280 // > GJBaseGameLayer::destroyObject @ 0x1001e9540 // > GJBaseGameLayer::handleButton @ 0x1001fad78 // > PlayerObject::updateJump @ 0x10021a79c // > PlayerObject::updateJump @ 0x10021aa10 // > PlayerObject::updateJump @ 0x10021ab40 // > PlayerObject::updateJump @ 0x10021afa4 // > PlayerObject::updateJump @ 0x10021b03c // > PlayerObject::updateJump @ 0x10021b608 // > PlayerObject::stopDashing @ 0x10021d008 // > PlayerObject::spiderTestJump @ 0x10021e080 // > PlayerObject::flipGravity @ 0x10021e1a8 // > PlayerObject::postCollision @ 0x10021fd88 // > PlayerObject::postCollision @ 0x10021fdbc // > PlayerObject::postCollision @ 0x10021fe0c // > PlayerObject::postCollision @ 0x10021fe40 // > PlayerObject::postCollision @ 0x10021fe74 // > PlayerObject::collidedWithObjectInternal @ 0x1002220d4 // > PlayerObject::collidedWithObjectInternal @ 0x1002222d0 // > PlayerObject::hitGround @ 0x10022380c // > PlayerObject::hitGround @ 0x100223904 // > PlayerObject::startDashing @ 0x1002268f8 // > PlayerObject::ringJump @ 0x100228248 // > PlayerObject::ringJump @ 0x100228280 // > PlayerObject::ringJump @ 0x1002286ec // > LevelEditorLayer::checkpointActivated @ 0x10036360c // // 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 GJBaseGameLayer::gameEventTriggered(GJBaseGameLayer *a1, GJGameEvent a2, int a3, int a4) { char *v8; // x0 unsigned int m_commandIndex; // w25 _QWORD *v10; // x0 unsigned int *v11; // x23 unsigned int *v12; // x24 void *__p; // [xsp+8h] [xbp-68h] BYREF void *v14; // [xsp+10h] [xbp-60h] __int64 v15; // [xsp+18h] [xbp-58h] unsigned __int64 v16; // [xsp+20h] [xbp-50h] BYREF v16 = (unsigned int)a2 | ((unsigned __int64)(unsigned int)(a4 + 10000 * a3) << 32); __p = &v16; v8 = sub_10006E558( (__int64 **)&a1->m_gameState.m_unkMapPairGJGameEventIntInt, (int *)&v16, (__int64)&unk_10063A31C, (_QWORD **)&__p); m_commandIndex = a1->m_gameState.m_commandIndex; if ( *((_DWORD *)v8 + 9) != m_commandIndex ) { __p = &v16; *((_DWORD *)sub_10006E558( (__int64 **)&a1->m_gameState.m_unkMapPairGJGameEventIntInt, (int *)&v16, (__int64)&unk_10063A31C, (_QWORD **)&__p) + 9) = m_commandIndex; __p = &v16; v10 = sub_10001A144( (__int64 **)&a1->m_gameState.m_unkMapPairGJGameEventIntVectorEventTriggerInstance, (__int64)&v16, (__int64)&unk_10063A31C, (__int64 **)&__p); v11 = (unsigned int *)v10[5]; v12 = (unsigned int *)v10[6]; while ( v11 != v12 ) { if ( (v11[3] & 1) == 0 ) { v14 = nullptr; v15 = 0; __p = nullptr; sub_100017EB4( (__int64 *)&__p, *((const void **)v11 + 2), *((_QWORD *)v11 + 3), (__int64)(*((_QWORD *)v11 + 3) - *((_QWORD *)v11 + 2)) >> 2); ((void (__fastcall *)(GJBaseGameLayer *, _QWORD, _QWORD, void **, _QWORD, _QWORD, double))a1->spawnGroup)( a1, *v11, 0, &__p, v11[1], v11[2], 0.0); if ( __p ) { v14 = __p; operator delete(__p); } } v11 += 10; } } if ( a4 ) GJBaseGameLayer::gameEventTriggered(a1, a2, a3, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source