//
// EnterEffectInstance::loadTransitions from 0x1005d3150 to 0x1005d3b12 (2498 bytes)
//
// 11 xrefs:
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x1001401d4
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x10014033d
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x100140390
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x1001403e0
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x100140430
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x100140484
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x10014049f
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x1001404ef
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x10014053f
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x10014058f
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x1001405fa
//
// 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 EnterEffectInstance::loadTransitions(EnterEffectInstance *a1, EnterEffectObject *a2, float a3)
{
int m_length; // eax
int m_lengthVariance; // eax
int m_offset; // eax
int m_offsetVariance; // eax
float m_modFront; // xmm1_4
float m_modBack; // xmm1_4
float m_deadzone; // xmm1_4
int m_moveDistance; // eax
int m_moveDistanceVariance; // eax
int m_moveAngle; // eax
int m_moveAngleVariance; // eax
int m_moveX; // eax
int m_moveXVariance; // eax
int m_moveY; // eax
int m_moveYVariance; // eax
float m_areaScaleX; // xmm1_4
float m_areaScaleXVariance; // xmm1_4
float m_areaScaleY; // xmm1_4
float m_areaScaleYVariance; // xmm1_4
float m_areaRotation; // xmm1_4
float m_areaRotationVariance; // xmm1_4
float m_areaTint; // xmm1_4
float m_property285; // xmm1_4
float m_toOpacity; // xmm1_4
float m_fromOpacity; // xmm1_4
int m_offsetY; // eax
int m_offsetYVariance; // eax
float m_relativeFade; // xmm1_4
m_length = a2->m_length;
if ( m_length == -99 )
{
m_lengthVariance = a2->m_lengthVariance;
if ( m_lengthVariance == -99 )
goto LABEL_3;
}
else
{
EnterEffectInstance::animateValue(
a1,
0,
a1->m_length,
(float)m_length,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_lengthVariance = a2->m_lengthVariance;
if ( m_lengthVariance == -99 )
{
LABEL_3:
m_offset = a2->m_offset;
if ( m_offset == -99 )
goto LABEL_4;
goto LABEL_47;
}
}
EnterEffectInstance::animateValue(
a1,
1,
a1->m_lengthVariance,
(float)m_lengthVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_offset = a2->m_offset;
if ( m_offset == -99 )
{
LABEL_4:
m_offsetVariance = a2->m_offsetVariance;
if ( m_offsetVariance == -99 )
goto LABEL_5;
goto LABEL_48;
}
LABEL_47:
EnterEffectInstance::animateValue(
a1,
2,
a1->m_offset,
(float)m_offset,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_offsetVariance = a2->m_offsetVariance;
if ( m_offsetVariance == -99 )
{
LABEL_5:
m_modFront = a2->m_modFront;
if ( m_modFront == -99.0 )
goto LABEL_7;
goto LABEL_6;
}
LABEL_48:
EnterEffectInstance::animateValue(
a1,
3,
a1->m_offsetVariance,
(float)m_offsetVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_modFront = a2->m_modFront;
if ( m_modFront != -99.0 )
LABEL_6:
EnterEffectInstance::animateValue(
a1,
4,
a1->m_modFront,
m_modFront,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
LABEL_7:
m_modBack = a2->m_modBack;
if ( m_modBack != -99.0 )
EnterEffectInstance::animateValue(
a1,
5,
a1->m_modBack,
m_modBack,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_deadzone = a2->m_deadzone;
if ( m_deadzone != -99.0 )
EnterEffectInstance::animateValue(
a1,
6,
a1->m_deadzone,
m_deadzone,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveDistance = a2->m_moveDistance;
if ( m_moveDistance == -99 )
{
m_moveDistanceVariance = a2->m_moveDistanceVariance;
if ( m_moveDistanceVariance == -99 )
goto LABEL_13;
}
else
{
EnterEffectInstance::animateValue(
a1,
7,
a1->m_moveDistance,
(float)m_moveDistance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveDistanceVariance = a2->m_moveDistanceVariance;
if ( m_moveDistanceVariance == -99 )
{
LABEL_13:
m_moveAngle = a2->m_moveAngle;
if ( m_moveAngle == -99 )
goto LABEL_14;
goto LABEL_52;
}
}
EnterEffectInstance::animateValue(
a1,
8,
a1->m_moveDistanceVariance,
(float)m_moveDistanceVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveAngle = a2->m_moveAngle;
if ( m_moveAngle == -99 )
{
LABEL_14:
m_moveAngleVariance = a2->m_moveAngleVariance;
if ( m_moveAngleVariance == -99 )
goto LABEL_15;
goto LABEL_53;
}
LABEL_52:
EnterEffectInstance::animateValue(
a1,
9,
a1->m_moveAngle,
(float)m_moveAngle,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveAngleVariance = a2->m_moveAngleVariance;
if ( m_moveAngleVariance == -99 )
{
LABEL_15:
m_moveX = a2->m_moveX;
if ( m_moveX == -99 )
goto LABEL_16;
goto LABEL_54;
}
LABEL_53:
EnterEffectInstance::animateValue(
a1,
10,
a1->m_moveAngleVariance,
(float)m_moveAngleVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveX = a2->m_moveX;
if ( m_moveX == -99 )
{
LABEL_16:
m_moveXVariance = a2->m_moveXVariance;
if ( m_moveXVariance == -99 )
goto LABEL_17;
goto LABEL_55;
}
LABEL_54:
EnterEffectInstance::animateValue(
a1,
11,
a1->m_moveX,
(float)m_moveX,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveXVariance = a2->m_moveXVariance;
if ( m_moveXVariance == -99 )
{
LABEL_17:
m_moveY = a2->m_moveY;
if ( m_moveY == -99 )
goto LABEL_18;
goto LABEL_56;
}
LABEL_55:
EnterEffectInstance::animateValue(
a1,
12,
a1->m_moveXVariance,
(float)m_moveXVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveY = a2->m_moveY;
if ( m_moveY == -99 )
{
LABEL_18:
m_moveYVariance = a2->m_moveYVariance;
if ( m_moveYVariance == -99 )
goto LABEL_19;
goto LABEL_57;
}
LABEL_56:
EnterEffectInstance::animateValue(
a1,
13,
a1->m_moveY,
(float)m_moveY,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_moveYVariance = a2->m_moveYVariance;
if ( m_moveYVariance == -99 )
{
LABEL_19:
m_areaScaleX = a2->m_areaScaleX;
if ( m_areaScaleX == -99.0 )
goto LABEL_21;
goto LABEL_20;
}
LABEL_57:
EnterEffectInstance::animateValue(
a1,
14,
a1->m_moveYVariance,
(float)m_moveYVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_areaScaleX = a2->m_areaScaleX;
if ( m_areaScaleX != -99.0 )
LABEL_20:
EnterEffectInstance::animateValue(
a1,
15,
a1->m_scaleX,
m_areaScaleX,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
LABEL_21:
m_areaScaleXVariance = a2->m_areaScaleXVariance;
if ( m_areaScaleXVariance != -99.0 )
EnterEffectInstance::animateValue(
a1,
16,
a1->m_scaleXVariance,
m_areaScaleXVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_areaScaleY = a2->m_areaScaleY;
if ( m_areaScaleY != -99.0 )
EnterEffectInstance::animateValue(
a1,
17,
a1->m_scaleY,
m_areaScaleY,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_areaScaleYVariance = a2->m_areaScaleYVariance;
if ( m_areaScaleYVariance != -99.0 )
EnterEffectInstance::animateValue(
a1,
18,
a1->m_scaleYVariance,
m_areaScaleYVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_areaRotation = a2->m_areaRotation;
if ( m_areaRotation != -99.0 )
EnterEffectInstance::animateValue(
a1,
19,
a1->m_rotation,
m_areaRotation,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_areaRotationVariance = a2->m_areaRotationVariance;
if ( m_areaRotationVariance != -99.0 )
EnterEffectInstance::animateValue(
a1,
20,
a1->m_rotationVariance,
m_areaRotationVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_areaTint = a2->m_areaTint;
if ( m_areaTint != -99.0 )
EnterEffectInstance::animateValue(
a1,
21,
a1->m_tint,
m_areaTint,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_property285 = a2->m_property285;
if ( m_property285 != -99.0 )
EnterEffectInstance::animateValue(
a1,
22,
a1->m_unk074,
m_property285,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_toOpacity = a2->m_toOpacity;
if ( m_toOpacity != -99.0 )
EnterEffectInstance::animateValue(
a1,
23,
a1->m_toOpacity,
m_toOpacity,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_fromOpacity = a2->m_fromOpacity;
if ( m_fromOpacity != -99.0 )
EnterEffectInstance::animateValue(
a1,
24,
a1->m_fromOpacity,
m_fromOpacity,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_offsetY = a2->m_offsetY;
if ( m_offsetY == -99 )
{
m_offsetYVariance = a2->m_offsetYVariance;
if ( m_offsetYVariance == -99 )
goto LABEL_41;
}
else
{
EnterEffectInstance::animateValue(
a1,
25,
a1->m_offsetY,
(float)m_offsetY,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_offsetYVariance = a2->m_offsetYVariance;
if ( m_offsetYVariance == -99 )
{
LABEL_41:
m_relativeFade = a2->m_relativeFade;
if ( m_relativeFade == -99.0 )
goto LABEL_43;
goto LABEL_42;
}
}
EnterEffectInstance::animateValue(
a1,
26,
a1->m_offsetYVariance,
(float)m_offsetYVariance,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
m_relativeFade = a2->m_relativeFade;
if ( m_relativeFade != -99.0 )
LABEL_42:
EnterEffectInstance::animateValue(
a1,
27,
a1->m_relativeFade,
m_relativeFade,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
LABEL_43:
if ( a2->m_hsvEnabled )
{
EnterEffectInstance::animateValue(
a1,
28,
a1->m_hue,
a2->m_hsvValue.h,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
EnterEffectInstance::animateValue(
a1,
29,
a1->m_saturation,
a2->m_hsvValue.s,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
EnterEffectInstance::animateValue(
a1,
30,
a1->m_value,
a2->m_hsvValue.v,
a2->m_duration,
a2->m_easingInType,
a2->m_easingInRate,
a2->m_easingInBuffer);
}
}