CommonLibVR
TESCameraState.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/B/BSTSmartPointer.h"
5 #include "RE/P/PlayerCamera.h"
6 
7 namespace RE
8 {
9  class BGSLoadFormBuffer;
10  class BGSSaveFormBuffer;
11  class NiPoint3;
12  class NiQuaternion;
13  class TESCamera;
14 
16  {
17  public:
18  inline static constexpr auto RTTI = RTTI_TESCameraState;
19  inline static constexpr auto VTABLE = VTABLE_TESCameraState;
20 
21  virtual ~TESCameraState(); // 00
22 
23  // add
24  virtual void Begin(); // 01 - { return; }
25  virtual void End(); // 02 - { return; }
26 #ifdef SKYRIMVR
27  virtual void Unk_03(); // 03 - Directly calls Update
28 #endif
29  virtual void Update(BSTSmartPointer<TESCameraState>& a_nextState); // 03
30  virtual void GetRotation(NiQuaternion& a_rotation); // 04
31  virtual void GetTranslation(NiPoint3& a_translation); // 05
32  virtual void SaveGame(BGSSaveFormBuffer* a_buf); // 06 - { return; }
33  virtual void LoadGame(BGSLoadFormBuffer* a_buf); // 07 - { return; }
34  virtual void Revert(BGSLoadFormBuffer* a_buf); // 08 - { return; }
35 
36  // members
37  std::uint32_t pad0C; // 0C
38  TESCamera* camera; // 10
39  CameraState id; // 18
40  std::uint32_t pad1C; // 1C
41  private:
42  KEEP_FOR_RE()
43  };
44  static_assert(sizeof(TESCameraState) == 0x20);
45 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BGSLoadFormBuffer.h:11
Definition: BGSSaveFormBuffer.h:8
Definition: BSTSmartPointer.h:37
Definition: NiPoint3.h:6
Definition: NiQuaternion.h:6
Definition: TESCameraState.h:16
virtual void Update(BSTSmartPointer< TESCameraState > &a_nextState)
virtual ~TESCameraState()
static constexpr auto RTTI
Definition: TESCameraState.h:18
virtual void LoadGame(BGSLoadFormBuffer *a_buf)
std::uint32_t pad1C
Definition: TESCameraState.h:40
virtual void Revert(BGSLoadFormBuffer *a_buf)
virtual void SaveGame(BGSSaveFormBuffer *a_buf)
virtual void Begin()
std::uint32_t pad0C
Definition: TESCameraState.h:37
virtual void End()
TESCamera * camera
Definition: TESCameraState.h:38
CameraState id
Definition: TESCameraState.h:39
virtual void GetTranslation(NiPoint3 &a_translation)
static constexpr auto VTABLE
Definition: TESCameraState.h:19
virtual void GetRotation(NiQuaternion &a_rotation)
Definition: TESCamera.h:13
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_TESCameraState
Definition: Offsets_VTABLE.h:12810
constexpr REL::ID RTTI_TESCameraState(static_cast< std::uint64_t >(684972))
Definition: BSIntrusiveRefCounted.h:8
CameraState
Definition: PlayerCamera.h:21