//
// GameObject::shouldBlendColor from 0x1005aa380 to 0x1005aa41b (155 bytes)
//
// 0 xrefs:
//
// 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 __fastcall GameObject::shouldBlendColor(GameObject *a1, GJSpriteColor *a2, bool a3)
{
int m_colorID; // ebx
bool m_unk353; // al
GameManager *v5; // rax
GJSpriteColor *m_baseColor; // rax
GameManager *v8; // rax
m_colorID = a2->m_colorID;
if ( !a2->m_colorID )
m_colorID = a2->m_defaultColorID;
m_unk353 = a1->m_unk353;
if ( a1->m_editorEnabled )
{
if ( m_unk353 )
m_colorID = 0;
v5 = GameManager::sharedState();
return LevelEditorLayer::shouldBlend(v5->m_levelEditorLayer, m_colorID);
}
else
{
if ( m_unk353 )
return 0;
while ( m_colorID == 1012 )
{
m_baseColor = a1->m_baseColor;
m_colorID = m_baseColor->m_colorID;
if ( !m_baseColor->m_colorID )
m_colorID = m_baseColor->m_defaultColorID;
}
if ( (unsigned int)(m_colorID - 1005) < 3 )
return 1;
if ( !m_colorID )
return 0;
v8 = GameManager::sharedState();
return PlayLayer::shouldBlend(v8->m_playLayer, m_colorID);
}
}