//
// LevelEditorLayer::postUpdate from 0x3750f4 to 0x37527c (392 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 LevelEditorLayer::postUpdate(LevelEditorLayer *a1, float a2)
{
GJEffectManager *m_effectManager; // r5
const cocos2d::CCPoint *v5; // r0
cocos2d::CCPoint v6; // r1
PlayerObject *m_player1; // r6
float *p_m_trailTimer; // r5
_BOOL4 m_maybeIsColliding; // r3
cocos2d::CCSprite *m_playtestDeathSprite; // r9
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10
int v12; // r0
EditorUI *m_editorUI; // r0
PlayerObject *v14; // r0
const cocos2d::CCPoint *v15; // r0
cocos2d::CCPoint v16; // r1
const cocos2d::CCPoint *v17; // r0
cocos2d::CCPoint v18; // r1
bool v19; // r3
cocos2d::CCPoint v20; // [sp+4h] [bp-Ch] BYREF
cocos2d::ccColor3B v21; // 0:^0.3
if ( !a1->m_gameState.m_isDualMode )
a1->m_soloMode = 1;
GJEffectManager::processColors(a1->m_effectManager);
m_effectManager = a1->m_effectManager;
v21 = GJEffectManager::activeColorForIndex(m_effectManager, 1005);
GJEffectManager::calculateLightBGColor(m_effectManager, v21);
((void (__fastcall *)(LevelEditorLayer *, _DWORD))a1->updateVisibility)(a1, LODWORD(a2));
if ( a1->m_previewMode )
GJBaseGameLayer::updateLevelColors(a1);
if ( a1->m_jumping )
{
v5 = a1->m_player1->getPosition(a1->m_player1);
cocos2d::CCPoint::CCPoint(&v20, v5);
LODWORD(v6.x) = &v20;
LevelEditorLayer::addTouchPoint(a1, v6);
}
m_player1 = a1->m_player1;
p_m_trailTimer = &a1->m_trailTimer;
m_maybeIsColliding = m_player1->m_maybeIsColliding;
a1->m_trailTimer = a1->m_trailTimer + a2;
if ( m_maybeIsColliding || a1->m_gameState.m_isDualMode && (m_player1 = a1->m_player2, m_player1->m_maybeIsColliding) )
{
PlayerObject::playerDestroyed(m_player1, 0);
m_playtestDeathSprite = a1->m_playtestDeathSprite;
setPosition = m_playtestDeathSprite->setPosition;
v12 = (int)m_player1->getPosition(m_player1);
setPosition(m_playtestDeathSprite, (const cocos2d::CCPoint *)v12);
a1->m_playtestDeathSprite->setVisible(a1->m_playtestDeathSprite, 1);
LevelEditorLayer::onStopPlaytest(a1);
m_editorUI = a1->m_editorUI;
if ( m_editorUI )
EditorUI::playtestStopped(m_editorUI);
}
if ( a1->m_playbackMode == Playing && *p_m_trailTimer >= 0.033333 )
{
v14 = a1->m_player1;
*p_m_trailTimer = 0.0;
v15 = v14->getPosition(v14);
cocos2d::CCPoint::CCPoint(&v20, v15);
LODWORD(v16.x) = &v20;
LevelEditorLayer::addPlayerPoint(a1, v16);
if ( a1->m_gameState.m_isDualMode )
{
v17 = a1->m_player2->getPosition(a1->m_player2);
cocos2d::CCPoint::CCPoint(&v20, v17);
LODWORD(v18.x) = &v20;
LODWORD(v18.y) = a1->m_soloMode;
LevelEditorLayer::addPlayer2Point(a1, v18, v19);
a1->m_soloMode = 0;
}
}
}