//
// StartPosObject::init from 0x1404b1fa0 to 0x1404b205e (190 bytes)
//
// 7 xrefs:
// > GameObject::createWithKey @ 0x14018b8cf
// > GameObject::createWithKey @ 0x14018b8d6
// > GameObject::createWithKey @ 0x14018b8c0
// > ??> @ 0x140612d38
// > ??> @ 0x1406a8310
// > ??> @ 0x1406a8320
// > ??> @ 0x1406dc980
//
// 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
//
bool StartPosObject::init(StartPosObject *a1)
{
LevelSettingsObject *v2; // rdi
LevelSettingsObject *m_startSettings; // rax
LevelSettingsObject *v4; // rcx
a1->m_eObjType = GameObjectObjectType;
if ( !cocos2d::CCSprite::initWithSpriteFrameName(a1, "edit_eStartPosBtn_001.png") )
return 0;
GameObject::commonSetup(a1);
a1->m_bUnkBool2 = 0;
a1->m_classType = Effect;
*(_WORD *)&a1->m_triggerTargetColor.r = -1;
a1->m_triggerTargetColor.b = -1;
a1->m_duration = 0.5;
a1->m_legacyHSV = 1;
v2 = LevelSettingsObject::create();
m_startSettings = a1->m_startSettings;
if ( m_startSettings != v2 )
{
if ( v2 )
cocos2d::CCObject::retain(v2);
v4 = a1->m_startSettings;
if ( v4 )
cocos2d::CCObject::release(v4);
a1->m_startSettings = v2;
m_startSettings = v2;
}
m_startSettings->m_startsWithStartPos = 1;
return 1;
}