//
// RandTriggerGameObject::create from 0x100389808 to 0x1003898b4 (172 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x1002549b4
//
// 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
//
RandTriggerGameObject *__fastcall RandTriggerGameObject::create()
{
RandTriggerGameObject *v0; // x19
v0 = (RandTriggerGameObject *)operator new(0x748u);
EffectGameObject::EffectGameObject(v0);
v0->m_chanceObjects.__end_cap_.__value_ = nullptr;
*(_OWORD *)&v0->m_chanceObjects.__begin_ = 0u;
v0->ChanceTriggerGameObject::EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RandTriggerGameObject_vtbl *)off_1007FFA68;
v0->ChanceTriggerGameObject::EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1008001B0;
v0->ChanceTriggerGameObject::EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100800230;
if ( EnhancedGameObject::init(v0, "edit_eAdvRandomBtn_001.png") )
{
v0->m_classType = Effect;
v0->m_triggerTargetColor.b = -1;
*(_WORD *)&v0->m_triggerTargetColor.r = -1;
v0->m_duration = 0.5;
v0->m_legacyHSV = 1;
cocos2d::CCObject::autorelease(v0);
}
else
{
((void (__fastcall *)(RandTriggerGameObject *))v0->~RandTriggerGameObject_0)(v0);
return nullptr;
}
return v0;
}