//
// CameraTriggerGameObject::triggerObject from 0x1001ddf20 to 0x1001de172 (594 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d37e0
//
// 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 CameraTriggerGameObject::triggerObject(
CameraTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
int m_objectID; // eax
MoveTargetType m_moveTargetMode; // r8d
m_objectID = a1->m_objectID;
if ( m_objectID > 2015 )
{
if ( m_objectID == 2016 )
return;
if ( m_objectID != 2062 )
{
if ( m_objectID == 2925 )
{
GJBaseGameLayer::updateCameraMode(a2, a1, 1);
return;
}
goto LABEL_12;
}
GJBaseGameLayer::updateCameraEdge(a2, a1->m_edgeDirection, a1->m_targetGroupID);
}
else
{
switch ( m_objectID )
{
case 1914:
m_moveTargetMode = a1->m_moveTargetMode;
if ( a1->m_exitStatic )
GJBaseGameLayer::exitStaticCamera(
a2,
m_moveTargetMode != YOnly,
m_moveTargetMode != XOnly,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_smoothVelocity,
a1->m_velocityModifier,
a1->m_exitInstant);
else
GJBaseGameLayer::updateStaticCameraPosToGroup(
a2,
a1->m_centerGroupID,
m_moveTargetMode != YOnly,
m_moveTargetMode != XOnly,
a1->m_followObject,
a1->m_followEasing,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_smoothVelocity,
a1->m_velocityModifier);
break;
case 1916:
if ( a1->m_moveTargetMode == YOnly
|| (GJBaseGameLayer::updateCameraOffsetX(
a2,
a1->m_moveOffset.x,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_uniqueID,
a1->m_controlID),
a1->m_moveTargetMode != XOnly) )
{
GJBaseGameLayer::updateCameraOffsetY(
a2,
a1->m_moveOffset.y,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_uniqueID,
a1->m_controlID);
}
break;
case 2015:
((void (__fastcall *)(GJBaseGameLayer *, bool, bool, _QWORD, _QWORD, _QWORD, float, float, float))a2->updateScreenRotation)(
a2,
a1->m_lockObjectRotation,
a1->m_isDirectionFollowSnap360,
(unsigned int)a1->m_easingType,
(unsigned int)a1->m_uniqueID,
(unsigned int)a1->m_controlID,
a1->m_rotationDegrees,
a1->m_duration,
a1->m_easingRate);
return;
default:
LABEL_12:
EffectGameObject::triggerObject(a1, a2, a3, a4);
return;
}
}
}