//
// GameObject::isColorObject from 0x3586f8 to 0x358732 (58 bytes)
//
// 5 xrefs:
// > GameObject::getRelativeSpriteColor @ 0x358738
// > LevelEditorLayer::updateVisibility @ 0x369b54
// > EditorUI::enableButton @ 0x37c350
// > EditorUI::disableButton @ 0x37c46c
// > EditorUI::getCreateBtn @ 0x386454
//
// 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 GameObject::isColorObject(GameObject *a1)
{
_BOOL4 m_maybeNotColorable; // r3
bool result; // r0
int m_defaultColorID; // r0
if ( a1->m_customColorType )
m_maybeNotColorable = a1->m_customColorType == 1;
else
m_maybeNotColorable = a1->m_maybeNotColorable;
result = !m_maybeNotColorable
&& !GameObject::hasSecondaryColor(a1)
&& (m_defaultColorID = a1->m_baseColor->m_defaultColorID, m_defaultColorID != 1004)
&& m_defaultColorID != 0;
return result;
}