//
// ColorAction::isInUse from 0x1002d9a60 to 0x1002d9aac (76 bytes)
//
// 2 xrefs:
// > EditorUI::pasteObjects @ 0x10003a982
// > LevelEditorLayer::getNextColorChannel @ 0x1000ed8d7
//
// 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 ColorAction::isInUse(ColorAction *a1)
{
int v1; // eax
unsigned int v2; // ecx
bool v3; // dl
bool result; // al
v1 = *(unsigned __int16 *)&a1->m_fromColor.r;
v2 = v1 | (a1->m_fromColor.b << 16);
v3 = (_WORD)v1 != 0xFFFF;
result = 1;
if ( !v3 && v2 >= 0xFF0000 && a1->m_fromOpacity == 1.0 && !a1->m_copyID && !a1->m_blending )
return a1->m_playerColor > 0;
return result;
}