//
// LevelEditorLayer::addPlayerPoint from 0x66e75c to 0x66e7b0 (84 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::postUpdate @ 0x66eca8
// > ??> @ 0x97128
//
// 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 LevelEditorLayer::addPlayerPoint(LevelEditorLayer *a1, cocos2d::CCPoint a2)
{
const cocos2d::CCPoint *v2; // x1
float *v3; // x20
std::vector *p_m_playerPoints; // x19
cocos2d::CCPoint *m_finish; // x0
v3 = &a1->m_varianceValues.__elems_[1975];
p_m_playerPoints = &a1->m_playerPoints;
m_finish = a1->m_playerPoints.m_finish;
if ( m_finish == p_m_playerPoints->m_reserveEnd )
{
std::vector::_M_emplace_back_aux((__int64)p_m_playerPoints, v2);
}
else
{
if ( m_finish )
{
cocos2d::CCPoint::CCPoint(m_finish, v2);
m_finish = p_m_playerPoints->m_finish;
}
*((_QWORD *)v3 + 291) = m_finish + 1;
}
}