//
// CameraTriggerGameObject::triggerObject from 0x7703c4 to 0x770574 (432 bytes)
//
// 2 xrefs:
// > ??> @ 0x807d8
// > ??> @ 0x1171b50
//
// 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 CameraTriggerGameObject::triggerObject(
CameraTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
int m_objectID; // w0
MoveTargetType m_moveTargetMode; // w0
bool v8; // w2
bool v9; // w7
m_objectID = a1->m_objectID;
if ( m_objectID == 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);
}
else if ( m_objectID <= 2015 )
{
if ( m_objectID == 1914 )
{
m_moveTargetMode = a1->m_moveTargetMode;
v8 = m_moveTargetMode != YOnly;
v9 = m_moveTargetMode != XOnly;
if ( a1->m_exitStatic )
GJBaseGameLayer::exitStaticCamera(
a2,
v8,
v9,
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,
v8,
v9,
a1->m_followObject,
a1->m_followEasing,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_smoothVelocity,
a1->m_velocityModifier);
}
else
{
if ( m_objectID != 1916 )
goto LABEL_6;
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);
}
}
}
else if ( m_objectID == 2062 )
{
GJBaseGameLayer::updateCameraEdge(a2, a1->m_edgeDirection, a1->m_targetGroupID);
}
else if ( m_objectID == 2925 )
{
GJBaseGameLayer::updateCameraMode(a2, a1, 1);
}
else if ( m_objectID != 2016 )
{
LABEL_6:
EffectGameObject::triggerObject(a1, a2, a3, a4);
}
}