//
// LevelEditorLayer::runColorEffect from 0x461b76 to 0x461c50 (218 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x4678e0
// > LevelEditorLayer::activateTriggerEffect @ 0x46790e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:53 +0000
//
int __fastcall LevelEditorLayer::runColorEffect(
GJEffectManager **this,
EffectGameObject *a2,
int a3,
float a4,
float a5,
bool a6)
{
_DWORD *v6; // r8
float v11; // s17
int ColorAction; // r0
float v13; // s15
ColorAction *v14; // r5
int result; // r0
v6 = (_DWORD *)((char *)a2 + 1272);
v11 = *((float *)a2 + 318);
ColorAction = GJEffectManager::getColorAction(*(this + 381), a3);
v13 = *(float *)(ColorAction + 144);
v14 = (ColorAction *)ColorAction;
if ( v13 != 0.0 )
{
if ( v11 > 0.0
&& a6
&& (*(float *)(ColorAction + 64) == 0.0 || *(_BYTE *)(ColorAction + 52))
&& *(int *)(ColorAction + 116) > 0 )
{
return 0;
}
*(_DWORD *)(ColorAction + 148) = 0;
*(_DWORD *)(ColorAction + 64) = 0;
ColorAction::step((ColorAction *)ColorAction, a4 - v13);
GJEffectManager::updateColorAction(*(this + 381), v14);
}
result = (*((int (__fastcall **)(GJEffectManager **, char *, _DWORD, int, _DWORD, _DWORD, char *, _DWORD, _DWORD, EffectGameObject *, _DWORD, _DWORD))*this
+ 154))(
this,
(char *)a2 + 1268,
*v6,
a3,
*((unsigned __int8 *)a2 + 1307),
*((_DWORD *)a2 + 319),
(char *)a2 + 1432,
*((_DWORD *)a2 + 362),
*((unsigned __int8 *)a2 + 1452),
a2,
*((_DWORD *)a2 + 195),
*((_DWORD *)a2 + 373));
*(float *)(result + 144) = a4;
*(float *)(result + 148) = a5;
return result;
}