//
// GJBaseGameLayer::updateMGOffsetY from 0x87d82c to 0x87d8a8 (124 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x66d620
// > LevelEditorLayer::updateGameObjects @ 0x67b428
// > EffectGameObject::triggerObject @ 0x76fa94
// > GJBaseGameLayer::resetLevelVariables @ 0x88aeac
// > ??> @ 0x535f8
//
// 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::updateMGOffsetY(GJBaseGameLayer *a1, float a2, float a3, int a4, float a5, int a6, int a7)
{
*(float *)&a1->m_gameState.m_unkInt3 = a2;
*(float *)&a1->m_gameState.m_unkInt4 = a3;
if ( a3 <= 0.0 )
{
GJGameState::stopTweenAction(&a1->m_gameState, 20);
LODWORD(a1->m_gameState.m_middleGroundOffsetY) = a1->m_gameState.m_unkInt3;
}
else
{
GJGameState::tweenValue(&a1->m_gameState, a1->m_gameState.m_middleGroundOffsetY, a2, 20, a3, a4, a5, a6, a7);
}
}