//
// TeleportPortalObject::create from 0x10038785c to 0x1003878f4 (152 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x100118ad0
// > GameObject::createWithKey @ 0x100254808
//
// 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
//
TeleportPortalObject *__fastcall TeleportPortalObject::create(const char *a1, bool a2)
{
TeleportPortalObject *v4; // x19
v4 = (TeleportPortalObject *)operator new(0x770u);
TeleportPortalObject::TeleportPortalObject(v4);
if ( EnhancedGameObject::init(v4, a1) )
{
v4->m_classType = Effect;
v4->m_triggerTargetColor.b = -1;
*(_WORD *)&v4->m_triggerTargetColor.r = -1;
v4->m_duration = 0.5;
v4->m_legacyHSV = 1;
if ( !a2 )
v4->m_isTouchTriggered = 1;
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(TeleportPortalObject *))v4->~TeleportPortalObject_0)(v4);
return nullptr;
}
return v4;
}