//
// GameObject::setRotation from 0x140197e00 to 0x140197f50 (336 bytes)
//
// 47 xrefs:
// > RingObject::setRotation @ 0x1403a3840
// > ParticleGameObject::setRotation @ 0x1404a0bd9
// > TeleportPortalObject::setRotation @ 0x1404b2587
// > ??> @ 0x140556500
// > ??> @ 0x140556c70
// > ??> @ 0x14055dca8
// > ??> @ 0x14055e328
// > ??> @ 0x14060dea0
// > ??> @ 0x14060e5c0
// > ??> @ 0x14060edf8
// > ??> @ 0x14060f4a0
// > ??> @ 0x14060fb70
// > ??> @ 0x140610228
// > ??> @ 0x140610970
// > ??> @ 0x140611908
// > ??> @ 0x1406120f0
// > ??> @ 0x140612798
// > ??> @ 0x140612e40
// > ??> @ 0x1406135b0
// > ??> @ 0x140614440
// > ??> @ 0x140614c78
// > ??> @ 0x1406153c0
// > ??> @ 0x140615a68
// > ??> @ 0x1406161b0
// > ??> @ 0x140616970
// > ??> @ 0x140617018
// > ??> @ 0x1406176c0
// > ??> @ 0x140617e30
// > ??> @ 0x1406184d8
// > ??> @ 0x140618c20
// > ??> @ 0x1406196c0
// > ??> @ 0x140619d68
// > ??> @ 0x14061a410
// > ??> @ 0x14061ab30
// > ??> @ 0x14061b1d8
// > ??> @ 0x14061b920
// > ??> @ 0x14061c0b8
// > ??> @ 0x14061ce08
// > ??> @ 0x14061d4b0
// > ??> @ 0x14061db58
// > ??> @ 0x14061e200
// > ??> @ 0x14061e8a8
// > ??> @ 0x14061f0b8
// > ??> @ 0x14061f850
// > ??> @ 0x140678dc4
// > ??> @ 0x140678dd4
// > ??> @ 0x1406cbae4
//
// 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 GameObject::setRotation(GameObject *a1, float a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
cocos2d::CCSprite *m_glowSprite; // rcx
cocos2d::CCSprite *m_colorSprite; // rcx
cocos2d::CCParticleSystemQuad *m_particle; // rcx
if ( a1->m_fRotationX != a2 || a1->m_fRotationY != a2 )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
cocos2d::CCSprite::setRotation(a1, a2);
if ( a1->m_hasFollower )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);
v4->__vftable[4].canEncode(v4);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *))m_glowSprite->setRotation)(m_glowSprite);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setRotation)(m_colorSprite);
m_particle = a1->m_particle;
if ( m_particle && !a1->m_particleLocked )
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setRotation)(m_particle);
a1->m_isRotationAligned = a2 == 90.0 || a2 == -90.0 || a2 == 270.0 || a2 == -270.0;
}
}