rodecomp/Source/Contents/Camera/CameraState.h
ragnarok-clanker d419318eeb Decompile 10 functions in Source/Client/Session/Session.h, Source/Client/Session/SessionPredicates.cpp, ...
Batch #16893 by KWDev: 10 byte-identical, 0 confirmed by peer review.

- fn_07187 CWarningPlaneEffect::OnProcess: byte-identical
- fn_02846 CCashEmotionAction_Register::Execute: byte-identical
- fn_02845 CCashEmotionAction_Play::Execute: byte-identical
- fn_21677 CGameMode::ReceiveHomunculusChange: byte-identical (already on main)
- fn_23881 CSession::IsHomunAid: byte-identical
- fn_23882 CSession::IsMercenaryAid: byte-identical
- fn_23885 CSession::IsPetAid: byte-identical
- fn_17916 CView::AddDistance: byte-identical
- fn_17917 CView::AddPitch: byte-identical
- fn_23379 CSession::HomunSkillLevel: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-11 10:58:29 +00:00

43 lines
1 KiB
C

#ifndef RAGNAROK_SOURCE_CONTENTS_CAMERA_CAMERASTATE_H
#define RAGNAROK_SOURCE_CONTENTS_CAMERA_CAMERASTATE_H
struct ServiceOptions;
struct CameraState {
/* 0020 */ float target[3];
/* 002C */ float pitch;
/* 0030 */ float yaw;
/* 0034 */ float distance;
/* 0038 */ float desiredTarget[3];
/* 0044 */ float desiredPitch;
/* 0048 */ float desiredYaw;
/* 004C */ float desiredDistance;
// INLINED
void Reset() {
this->yaw = this->desiredYaw = 0;
this->distance = this->desiredDistance = 300;
this->pitch = this->desiredPitch = -45;
for (unsigned axis = 0; axis < 3; ++axis) {
this->target[axis] = this->desiredTarget[axis] = 0;
}
}
void AddYaw(float delta);
void Smooth();
};
struct CameraShake {
/* 0004 */ float horizontal;
/* 0008 */ float distance;
/* 000C */ float pitch;
/* 0010 */ unsigned resetFlags;
/* 0014 */ int enabled;
/* 0018 */ unsigned start;
/* 001C */ unsigned duration;
};
static_assert(sizeof(CameraState) == 48);
static_assert(sizeof(CameraShake) == 28);
#endif