// // cocos2d::CCLightning::draw from 0x2e60a0 to 0x2e61a4 (260 bytes) // // 0 xrefs: // // 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 cocos2d::CCLightning::draw(cocos2d::CCLightning *a1) { float m_opacityModify; // s14 unsigned int *p_m_numPoints; // r8 unsigned __int64 *p_m_seed; // r9 std::uint64_t m_seed; // t1 cocos2d::CCPoint v7; // [sp+20h] [bp-14h] BYREF cocos2d::CCPoint v8; // [sp+2Ch] [bp-8h] BYREF cocos2d::CCPoint v9; // [sp+34h] [bp+0h] BYREF cocos2d::CCPoint v10; // [sp+3Ch] [bp+8h] BYREF m_opacityModify = a1->m_opacityModify; p_m_numPoints = &a1->m_numPoints; a1->m_numPoints = 0; cocos2d::ccDrawColor4B( a1->m_color.r, a1->m_color.g, a1->m_color.b, (unsigned int)(float)((float)a1->m_opacity * m_opacityModify)); glLineWidth(a1->m_lineWidth); cocos2d::ccGLBlendFunc((unsigned int)&stru_2FC.st_value + 2, 1u); cocos2d::CCPoint::CCPoint(&v9, 0.0, 0.0); cocos2d::CCPoint::CCPoint(&v10, &a1->m_strikePoint); m_seed = a1->m_seed; p_m_seed = &a1->m_seed; drawLightning( &v8, &v9, &v10, a1->m_displacement, a1->m_minDisplacement, m_seed, a1->m_lightningPoints->__elems_, p_m_numPoints); if ( a1->m_split ) { cocos2d::CCPoint::CCPoint(&v9, &v8); cocos2d::CCPoint::CCPoint(&v10, &a1->m_strikePoint2); drawLightning( &v7, &v9, &v10, a1->m_displacement / 2, a1->m_minDisplacement, *p_m_seed, a1->m_lightningPoints->__elems_, p_m_numPoints); } cocos2d::ccDrawLines(a1->m_lightningPoints->__elems_, a1->m_numPoints); }
GD Web Decomp Icon

GD Web Decomp

Raw Source