//
// GJWorldNode::onLevel from 0x962aa4 to 0x962b30 (140 bytes)
//
// 3 xrefs:
// > ??> @ 0xbf868
// > GJWorldNode::init @ 0x960508
// > ??> @ 0x122ea60
//
// 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 GJWorldNode::onLevel(GJWorldNode *a1, cocos2d::CCObject *a2)
{
WorldSelectLayer *m_selectLayer; // x19
GameLevelManager *v5; // x21
int v6; // w0
GJGameLevel *MainLevel; // x0
WorldLevelPage *v8; // x0
m_selectLayer = a1->m_selectLayer;
if ( !m_selectLayer->m_enteringLevel && !m_selectLayer->m_buttonsLocked )
{
v5 = GameLevelManager::sharedState();
v6 = a2->getTag(a2);
MainLevel = GameLevelManager::getMainLevel(v5, v6, 1);
a1->m_level = MainLevel;
v8 = WorldLevelPage::create(MainLevel, a1);
v8->show(v8);
}
}