//
// LevelEditorLayer::updatePreviewParticle from 0x1402e1640 to 0x1402e16d0 (144 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1402d7cda
// > LevelEditorLayer::updatePreviewParticles @ 0x1402e1615
// > ??> @ 0x1406d36d4
//
// 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::updatePreviewParticle(LevelEditorLayer *a1, ParticleGameObject *a2)
{
ParticleGameObject_vtbl *v3; // rax
int v5; // eax
v3 = a2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( a1->m_previewParticles )
{
a2->m_notPreviewing = 0;
if ( v3->isVisible(a2) )
a2->claimParticle(a2);
if ( a1->m_hideParticleIcons || a1->m_playbackMode == Playing )
v5 = 0;
else
v5 = 50;
}
else
{
a2->m_notPreviewing = 1;
v3->unclaimParticle(a2);
v5 = 0;
if ( a1->m_playbackMode != Playing )
v5 = 255;
}
ParticleGameObject::updateParticlePreviewArtOpacity(a2, (float)v5);
}