//
// LevelEditorLayer::updatePreviewParticles from 0x368fd0 to 0x369028 (88 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x3691d2
// > LevelEditorLayer::onStopPlaytest @ 0x3692c6
// > LevelEditorLayer::onPlaytest @ 0x36ece0
// > EditorUI::keyDown @ 0x3a74a8
// > EditorPauseLayer::togglePreviewParticles @ 0x3ff420
// > EditorOptionsLayer::onClose @ 0x4a7d14
// > MapSelectLayer::init @ 0x50faa8
//
// 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::updatePreviewParticles(LevelEditorLayer *a1)
{
GameManager *v2; // r0
bool m_alwaysHideParticleIcons; // r0
GameManager *v4; // r0
cocos2d::CCArray **p_m_particleObjects; // r6
unsigned int v6; // r5
ParticleGameObject *v7; // r0
v2 = GameManager::sharedState();
a1->m_previewParticles = GameManager::getGameVariable(v2, "0117");
m_alwaysHideParticleIcons = a1->m_alwaysHideParticleIcons;
if ( !m_alwaysHideParticleIcons )
{
v4 = GameManager::sharedState();
m_alwaysHideParticleIcons = GameManager::getGameVariable(v4, "0137");
}
p_m_particleObjects = &a1->m_particleObjects;
v6 = 0;
a1->m_hideParticleIcons = m_alwaysHideParticleIcons;
while ( v6 < cocos2d::CCArray::count(*p_m_particleObjects) )
{
v7 = (ParticleGameObject *)cocos2d::CCArray::objectAtIndex(*p_m_particleObjects, v6++);
LevelEditorLayer::updatePreviewParticle(a1, v7);
}
}