//
// GameObject::setChildColor from 0x1005c9070 to 0x1005c90d9 (105 bytes)
//
// 47 xrefs:
// > ParticleGameObject::setChildColor @ 0x1001b2a13
// > AnimatedGameObject::setChildColor @ 0x1001b8fad
// > ??> @ 0x1008c4cd8
// > ??> @ 0x1008c54d0
// > ??> @ 0x1008c5cc8
// > ??> @ 0x1008c64c0
// > ??> @ 0x1008c6cb8
// > ??> @ 0x1008c74b0
// > ??> @ 0x1008c7ca8
// > ??> @ 0x1008c8ca0
// > ??> @ 0x1008c9518
// > ??> @ 0x1008c9d28
// > ??> @ 0x1008ca538
// > ??> @ 0x1008cad48
// > ??> @ 0x1008cb558
// > ??> @ 0x1008cbd68
// > ??> @ 0x1008cc578
// > ??> @ 0x1008ccd88
// > ??> @ 0x1008cd598
// > ??> @ 0x1008cdda8
// > ??> @ 0x1008ce5d0
// > ??> @ 0x1008cee28
// > ??> @ 0x1008cf650
// > ??> @ 0x1008cfe78
// > ??> @ 0x1008d06a0
// > ??> @ 0x1008d0ec8
// > ??> @ 0x1008d16d8
// > ??> @ 0x1008d1ee8
// > ??> @ 0x1008d26f8
// > ??> @ 0x1008d2f08
// > ??> @ 0x1008d3718
// > ??> @ 0x1008d3f28
// > ??> @ 0x1008d4738
// > ??> @ 0x1008d4f48
// > ??> @ 0x1008d5758
// > ??> @ 0x1008d5f68
// > ??> @ 0x1008d6778
// > ??> @ 0x1008d6f88
// > ??> @ 0x1008d7798
// > ??> @ 0x1008d7fa8
// > ??> @ 0x1008d87b8
// > ??> @ 0x1008d8fc8
// > ??> @ 0x100923770
// > ??> @ 0x100933b38
// > ??> @ 0x100971820
// > ??> @ 0x100972008
// > ??> @ 0x100972818
//
// 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
//
void __fastcall GameObject::setChildColor(GameObject *a1, const cocos2d::ccColor3B *a2)
{
cocos2d::CCSprite *m_colorSprite; // rax
__int16 v3; // cx
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
{
v3 = 0;
if ( !a2->r && !a2->g && !a2->b )
v3 = (a1->m_childColorType == 1) + 1;
a1->m_childColorType = v3;
((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setColor)(m_colorSprite);
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::ccColor3B *))a1->m_colorSprite->setChildColor)(
a1->m_colorSprite,
a2);
}
}