// // SetupSmartBlockLayer::onCreateTemplate from 0x10006fe1c to 0x10006fe94 (120 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x10006f378 // // 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 SetupSmartBlockLayer::onCreateTemplate(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2) { __int64 v3; // x0 cocos2d::CCArray *v4; // x20 SmartGameObject *m_gameObject; // x1 cocos2d::CCArray *m_gameObjects; // x1 GameLevelManager *v7; // x0 GJSmartTemplate *ActiveSmartTemplate; // x21 GameManager *v9; // x0 cocos2d::CCObject *v10; // x1 v3 = sub_10024A15C(a1); v4 = (cocos2d::CCArray *)v3; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { sub_10024A2D0(v3, m_gameObject); } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) sub_10024A360(v3, m_gameObjects); } v7 = GameLevelManager::sharedState(); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v7); v9 = GameManager::sharedState(); EditorUI::addObjectsToSmartTemplate(v9->m_levelEditorLayer->m_editorUI, ActiveSmartTemplate, v4); SetupSmartBlockLayer::onClose(a1, v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source