//
// GameObject::isColorTrigger from 0x10069ccc0 to 0x10069cd04 (68 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1000af8c3
// > LevelEditorLayer::removeSpecial @ 0x1000b1d1e
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:16 +0000
//
char __fastcall GameObject::isColorTrigger(__int64 a1)
{
int v1; // ecx
char result; // al
unsigned int v3; // ecx
int v4; // edx
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 <= 898 )
{
if ( (unsigned int)(v1 - 29) < 2 || v1 == 105 || v1 == 744 )
return result;
return 0;
}
v3 = v1 - 899;
if ( v3 > 0x10 )
return 0;
v4 = 65539;
if ( !_bittest(&v4, v3) )
return 0;
return result;
}