//
// ColorAction::init from 0x49961c to 0x49965a (62 bytes)
//
// 1 xrefs:
// > ColorAction::create @ 0x4996fc
//
// 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 ColorAction::init(
ColorAction *a1,
cocos2d::ccColor3B a2,
cocos2d::ccColor3B a3,
float a4,
double a5,
bool a6,
int a7,
float a8,
float a9)
{
a1->m_duration = a4;
a1->m_fromColor = a2;
a1->m_blending = a6;
a1->m_playerColor = a7;
a1->m_colorID = 0;
*(_WORD *)&a1->m_toColor.r = *(_WORD *)&a3.r;
a1->m_fromOpacity = a8;
a1->m_toColor.b = a3.b;
a1->m_toOpacity = a9;
return 1;
}