//
// GJBaseGameLayer::triggerTransformCommand from 0x471128 to 0x471260 (312 bytes)
//
// 1 xrefs:
// > TransformTriggerGameObject::triggerObject @ 0x3ee5d4
//
// 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 GJBaseGameLayer::triggerTransformCommand(GJBaseGameLayer *a1, TransformTriggerGameObject *a2)
{
double m_objectScaleX; // d8
double m_objectScaleY; // d9
GameObject *MainObject; // r0
double v7; // d6
double v8; // d7
m_objectScaleX = a2->m_objectScaleX;
m_objectScaleY = a2->m_objectScaleY;
if ( m_objectScaleX == 0.0 )
m_objectScaleX = 1.0;
if ( m_objectScaleY == 0.0 )
m_objectScaleY = 1.0;
if ( a2->m_divideX )
m_objectScaleX = 1.0 / m_objectScaleX;
if ( a2->m_divideY )
m_objectScaleY = 1.0 / m_objectScaleY;
if ( a2->m_relativeScale )
{
MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2->m_centerGroupID);
if ( MainObject )
{
v7 = (float)(MainObject->m_scaleX / MainObject->m_startScaleX);
v8 = (float)(MainObject->m_scaleY / MainObject->m_startScaleY);
if ( v7 != 0.0 )
m_objectScaleX = (m_objectScaleX - 1.0) / v7 + 1.0;
if ( v8 != 0.0 )
m_objectScaleY = (m_objectScaleY - 1.0) / v8 + 1.0;
}
}
GJEffectManager::createTransformCommand(
a1->m_effectManager,
m_objectScaleX,
m_objectScaleY,
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);
}