//
// GameObject::getSecondaryColorMode from 0x10025e030 to 0x10025e050 (32 bytes)
//
// 12 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef9f8
// > LevelEditorLayer::updateVisibility @ 0x10035ecd4
// > LevelEditorLayer::updateVisibility @ 0x10035eed0
// > LevelEditorLayer::updateVisibility @ 0x10035ef68
// > LevelEditorLayer::updateObjectColors @ 0x10035f2f4
// > LevelEditorLayer::updateObjectColors @ 0x10035f4b0
// > LevelEditorLayer::getNextColorChannel @ 0x1003602fc
// > LevelEditorLayer::resetUnusedColorChannels @ 0x1003604a8
// > EditorUI::copyObjects @ 0x1003e88c4
// > EditorUI::spriteFromObjectString @ 0x1003ea958
// > EditorUI::canSelectObject @ 0x1003ed5b8
// > EditorUI::selectObjects @ 0x1003ed774
//
// 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
//
int __fastcall GameObject::getSecondaryColorMode(GameObject *a1)
{
GJSpriteColor *m_detailColor; // x8
int m_colorID; // w8
m_detailColor = a1->m_detailColor;
if ( !m_detailColor )
return 0;
m_colorID = m_detailColor->m_colorID;
if ( m_colorID )
return m_colorID;
else
return a1->m_detailColor->m_defaultColorID;
}