//
// GJBaseGameLayer::triggerTransformCommand from 0x1001ef61c to 0x1001ef750 (308 bytes)
//
// 1 xrefs:
// > TransformTriggerGameObject::triggerObject @ 0x1003914f0
//
// 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
//
void __fastcall GJBaseGameLayer::triggerTransformCommand(GJBaseGameLayer *a1, TransformTriggerGameObject *a2)
{
float m_objectScaleX; // s0
double v5; // d1
float m_objectScaleY; // s2
double v7; // d2
double v8; // d8
double v9; // d9
GameObject *MainObject; // x0
float v11; // s1
float v12; // s0
m_objectScaleX = a2->m_objectScaleX;
v5 = m_objectScaleX;
m_objectScaleY = a2->m_objectScaleY;
if ( m_objectScaleX == 0.0 )
v5 = 1.0;
if ( m_objectScaleY == 0.0 )
v7 = 1.0;
else
v7 = m_objectScaleY;
if ( a2->m_divideX )
v8 = 1.0 / v5;
else
v8 = v5;
if ( a2->m_divideY )
v9 = 1.0 / v7;
else
v9 = v7;
if ( a2->m_relativeScale )
{
MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2->m_centerGroupID);
if ( MainObject )
{
v11 = MainObject->m_scaleX / MainObject->m_startScaleX;
v12 = MainObject->m_scaleY / MainObject->m_startScaleY;
if ( v11 != 0.0 )
v8 = (v8 + -1.0) / v11 + 1.0;
if ( v12 != 0.0 )
v9 = (v9 + -1.0) / v12 + 1.0;
}
}
GJEffectManager::createTransformCommand(
a1->m_effectManager,
v8,
v9,
a2->m_property450,
a2->m_property451,
a2->m_onlyMove,
a2->m_duration,
a2->m_targetGroupID,
a2->m_centerGroupID,
a2->m_easingType,
a2->m_easingRate,
0,
a2->m_relativeRotation,
a2->m_uniqueID,
a2->m_controlID);
}