//
// GameObject::isColorObject from 0x64a108 to 0x64a178 (112 bytes)
//
// 6 xrefs:
// > GameObject::getRelativeSpriteColor @ 0x64a18c
// > LevelEditorLayer::updateVisibility @ 0x66320c
// > EditorUI::enableButton @ 0x687200
// > EditorUI::disableButton @ 0x687320
// > EditorUI::getCreateBtn @ 0x694c6c
// > ??> @ 0x92598
//
// 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)
{
if ( a1->m_customColorType )
{
if ( a1->m_customColorType == 1 )
return 0;
}
else if ( a1->m_maybeNotColorable )
{
return 0;
}
if ( GameObject::hasSecondaryColor(a1) )
return 0;
return a1->m_baseColor->m_defaultColorID != 1004 && a1->m_baseColor->m_defaultColorID != 0;
}