//
// GameObject::getColorIndex from 0x3594a2 to 0x359500 (94 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::getNextColorChannel @ 0x371be6
// > LevelEditorLayer::resetUnusedColorChannels @ 0x371d46
//
// 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 GameObject::getColorIndex(GameObject *a1)
{
int m_objectID; // r3
m_objectID = a1->m_objectID;
if ( m_objectID == 744 )
return 1003;
if ( m_objectID > 744 )
{
switch ( m_objectID )
{
case 900:
return 1009;
case 915:
return 1002;
case 899:
return a1->m_targetColor;
}
}
else
{
switch ( m_objectID )
{
case 30:
return 1001;
case 105:
return 1004;
case 29:
return 1000;
}
}
return 0;
}