//
// GameObject::activateObject from 0x1005a9f20 to 0x1005a9fee (206 bytes)
//
// 47 xrefs:
// > AnimatedGameObject::activateObject @ 0x1001b72a2
// > ??> @ 0x1008c4da8
// > ??> @ 0x1008c55a0
// > ??> @ 0x1008c5d98
// > ??> @ 0x1008c6590
// > ??> @ 0x1008c6d88
// > ??> @ 0x1008c7580
// > ??> @ 0x1008c7d78
// > ??> @ 0x1008c8560
// > ??> @ 0x1008c8d70
// > ??> @ 0x1008c95e8
// > ??> @ 0x1008c9df8
// > ??> @ 0x1008ca608
// > ??> @ 0x1008cae18
// > ??> @ 0x1008cb628
// > ??> @ 0x1008cbe38
// > ??> @ 0x1008cc648
// > ??> @ 0x1008cce58
// > ??> @ 0x1008cd668
// > ??> @ 0x1008cde78
// > ??> @ 0x1008ce6a0
// > ??> @ 0x1008ceef8
// > ??> @ 0x1008cf720
// > ??> @ 0x1008cff48
// > ??> @ 0x1008d0770
// > ??> @ 0x1008d0f98
// > ??> @ 0x1008d17a8
// > ??> @ 0x1008d1fb8
// > ??> @ 0x1008d27c8
// > ??> @ 0x1008d2fd8
// > ??> @ 0x1008d37e8
// > ??> @ 0x1008d3ff8
// > ??> @ 0x1008d4808
// > ??> @ 0x1008d5018
// > ??> @ 0x1008d5828
// > ??> @ 0x1008d6038
// > ??> @ 0x1008d6848
// > ??> @ 0x1008d7058
// > ??> @ 0x1008d7868
// > ??> @ 0x1008d8078
// > ??> @ 0x1008d8888
// > ??> @ 0x1008d9098
// > ??> @ 0x100923840
// > ??> @ 0x100933c08
// > ??> @ 0x1009718f0
// > ??> @ 0x1009720d8
// > ??> @ 0x1009728e8
//
// 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::activateObject(GameObject *a1)
{
ZLayer m_zLayer; // r14d
_BOOL8 m_editorEnabled; // r15
GameManager *v3; // rax
cocos2d::CCNode *v4; // rax
a1->m_unk3ee = 0;
if ( !a1->m_isActivated && !a1->m_isDisabled )
{
a1->m_isActivated = 1;
if ( !a1->m_isInvisible )
{
((void (__fastcall *)(GameObject *, __int64))a1->setVisible)(a1, 1);
((void (__fastcall *)(GameObject *, _QWORD))a1->addMainSpriteToParent)(a1, 0);
if ( a1->m_glowSprite )
{
m_zLayer = a1->m_zLayer;
if ( !m_zLayer )
m_zLayer = a1->m_defaultZLayer;
m_editorEnabled = a1->m_editorEnabled;
v3 = GameManager::sharedState();
v4 = GJBaseGameLayer::parentForZLayer(
*((GJBaseGameLayer **)&v3->m_playLayer + m_editorEnabled),
m_zLayer,
1,
5,
a1->m_isUIObject);
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))v4->addChild_0)(
v4,
a1->m_glowSprite,
4294966296LL);
}
GameObject::addColorSpriteToParent(a1, 0);
}
}
}