// // GameObject::commonSetup from 0x100254ba0 to 0x100254ce4 (324 bytes) // // 5 xrefs: // > TextGameObject::create @ 0x100254a24 // > GameObject::createWithFrame @ 0x100254b14 // > GameObject::init @ 0x100254b84 // > GameObject::initWithTexture @ 0x100254d04 // > EnhancedGameObject::init @ 0x100262e40 // // 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 GameObject::commonSetup(GameObject *a1) { float *p_m_width; // x20 bool m_editorEnabled; // w8 int v4; // w10 int v5; // w9 p_m_width = &a1->m_width; m_editorEnabled = GameManager::sharedState()->m_editorEnabled; a1->m_editorEnabled = m_editorEnabled; if ( !m_editorEnabled && GameManager::sharedState()->m_playLayer ) a1->m_goEffectManager = GameManager::sharedState()->m_playLayer->m_effectManager; GameObject::createSpriteColor(a1, 1); *(_QWORD *)a1->m_baseColor = 0x3EC00000000LL; a1->m_opacityMod = 1.0; a1->m_defaultZOrder = 2; *(_DWORD *)&a1->m_enterType = -1; a1->m_unk3E8 = 1; v4 = (int)(float)((float)((float)(((unsigned __int64)(214013 * qword_10086D518 + 2531011) >> 16) & 0x7FFF) / 32767.0) * 1900.0); qword_10086D518 = 214013 * qword_10086D518 + 2531011; a1->m_varianceIndex = v4; *(cocos2d::CCSize *)p_m_width = a1->m_obRect.size; *(_QWORD *)&a1->m_spriteWidthScale = 0x3F8000003F800000LL; v5 = dword_10084C1E8; a1->m_uniqueID = dword_10084C1E8; a1->m_unknown5 = v5; dword_10084C1E8 = v5 + 1; *((_OWORD *)p_m_width + 13) = xmmword_100635DB0; ((void (__fastcall *)(GameObject *, float))a1->setScaleX)(a1, 1.0); ((void (__fastcall *)(GameObject *, float))a1->setScaleY)(a1, 1.0); a1->m_isActivated = 0; a1->m_isDirty = 1; a1->m_isObjectRectDirty = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source