//
// GhostTrailEffect::create from 0x2fbaa8 to 0x2fbb30 (136 bytes)
//
// 2 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x341644
// > PlayerObject::toggleGhostEffect @ 0x34168a
//
// 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
//
GhostTrailEffect *GhostTrailEffect::create()
{
GhostTrailEffect *v0; // r4
GhostTrailEffect_vtbl *v1; // r3
GhostTrailEffect_vtbl *v2; // r3
int *v3; // r0
v0 = (GhostTrailEffect *)operator new(0x148u);
cocos2d::CCNode::CCNode(v0);
v0->m_snapshotInterval = 0.0;
v0->m_fadeInterval = 0.0;
v0->m_ghostScale = 0.0;
v0->__vftable = (GhostTrailEffect_vtbl *)&off_A41C18;
v0->m_playerScale = 0.0;
v0->m_scaleTwice = 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);
v1 = v0->__vftable;
v0->m_unk194 = 0;
if ( ((int (__fastcall *)(GhostTrailEffect *))v1->init)(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
v2 = v0->__vftable;
v3 = (int *)v0;
v0 = nullptr;
v2->~GhostTrailEffect_0((GhostTrailEffect *)v3);
}
return v0;
}