//
// GhostTrailEffect::create from 0x14006a000 to 0x14006a0d6 (214 bytes)
//
// 3 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x14039eedc
// > PlayerObject::toggleGhostEffect @ 0x14039efb1
// > ??> @ 0x1406c5f1c
//
// 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
//
// Hidden C++ exception states: #wind=2
GhostTrailEffect *GhostTrailEffect::create()
{
GhostTrailEffect *v0; // rbx
bool (*init)(GhostTrailEffect *); // rdx
bool v2; // al
v0 = (GhostTrailEffect *)operator new(0x198u);
cocos2d::CCNode::CCNode(v0);
v0->__vftable = (GhostTrailEffect_vtbl *)&GhostTrailEffect::`vftable';
*(_QWORD *)&v0->m_snapshotInterval = 0;
v0->m_ghostScale = 0.0;
v0->m_scaleTwice = 0;
v0->m_playerScale = 0.0;
v0->m_iconSprite = nullptr;
v0->m_playerObject = nullptr;
v0->m_objectLayer = nullptr;
v0->m_opacity = 0.0;
v0->m_delegate = nullptr;
cocos2d::CCPoint::CCPoint(&v0->m_position);
v0->m_unk194 = 0;
init = (bool (*)(GhostTrailEffect *))v0->init;
if ( init == GhostTrailEffect::init )
v2 = GhostTrailEffect::init(v0);
else
v2 = init(v0);
if ( v2 )
{
cocos2d::CCObject::autorelease(v0);
return v0;
}
else
{
((void (__fastcall *)(GhostTrailEffect *, __int64))v0->~GhostTrailEffect)(v0, 1);
return nullptr;
}
}