//
// LevelEditorLayer::updatePreviewParticle from 0x1000ea170 to 0x1000ea1f5 (133 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 __fastcall LevelEditorLayer::updatePreviewParticle(LevelEditorLayer *a1, ParticleGameObject *a2)
{
int v2; // eax
float v3; // xmm0_4
int v4; // ecx
if ( !a1->m_previewParticles )
{
a2->m_notPreviewing = 1;
((void (__fastcall *)(ParticleGameObject *))a2->unclaimParticle)(a2);
v2 = 255;
LABEL_7:
v4 = 0;
if ( a1->m_playbackMode != Playing )
v4 = v2;
v3 = (float)v4;
goto LABEL_10;
}
a2->m_notPreviewing = 0;
if ( ((unsigned __int8 (__fastcall *)(ParticleGameObject *))a2->isVisible)(a2) )
((void (__fastcall *)(ParticleGameObject *))a2->claimParticle)(a2);
v2 = 50;
v3 = 0.0;
if ( !a1->m_hideParticleIcons )
goto LABEL_7;
LABEL_10:
ParticleGameObject::updateParticlePreviewArtOpacity(a2, v3);
}