//
// ArtTriggerGameObject::create from 0x10039700c to 0x1003970b0 (164 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10025483c
//
// 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
//
ArtTriggerGameObject *__fastcall ArtTriggerGameObject::create(const char *a1)
{
ArtTriggerGameObject *v2; // x19
v2 = (ArtTriggerGameObject *)operator new(0x730u);
EffectGameObject::EffectGameObject(v2);
v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ArtTriggerGameObject_vtbl *)&off_100806BA8;
v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1008072F0;
v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100807370;
v2->m_artIndex = 0;
if ( EnhancedGameObject::init(v2, a1) )
{
v2->m_classType = Effect;
v2->m_triggerTargetColor.b = -1;
*(_WORD *)&v2->m_triggerTargetColor.r = -1;
v2->m_duration = 0.5;
v2->m_legacyHSV = 1;
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(ArtTriggerGameObject *))v2->~ArtTriggerGameObject_0)(v2);
return nullptr;
}
return v2;
}