//
// GJBaseGameLayer::swapGround from 0x46d1e0 to 0x46d20c (44 bytes)
//
// 1 xrefs:
// > ArtTriggerGameObject::triggerObject @ 0x3e51a4
//
// 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::swapGround(GJBaseGameLayer *a1, int a2)
{
_BOOL4 m_skipArtReload; // r3
GameManager *v4; // r0
m_skipArtReload = a1->m_skipArtReload;
a1->m_gameState.m_ground = a2;
if ( !m_skipArtReload && GameManager::sharedState()->m_loadedGroundID != a2 )
{
v4 = GameManager::sharedState();
GameManager::loadGroundAsync(v4, a2);
}
}