CommonLibSSE (powerof3)
TESLoadScreen.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/F/FormTypes.h"
5 #include "RE/T/TESCondition.h"
6 #include "RE/T/TESForm.h"
7 #include "RE/T/TESModel.h"
8 
9 namespace RE
10 {
11  class TESLoadScreen : public TESForm
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_TESLoadScreen;
15  inline static constexpr auto FORMTYPE = FormType::LoadScreen;
16 
17  struct RecordFlags
18  {
19  enum RecordFlag : std::uint32_t
20  {
21  kDeleted = 1 << 5,
23  kIgnored = 1 << 12
24  };
25  };
26 
27  struct LoadNIFData
28  {
29  TESBoundObject* loadNIF; // 00 - NNAM
30  float initialScale; // 08 - SNAM
31  std::int16_t rotationConstraints[3]; // 0C - RNAM
32  std::int16_t rotationOffsetConstraints[2]; // 12 - ONAM
33  std::uint16_t pad16; // 16
34  float initialTranslationOffset[3]; // 18 - XNAM
35  std::uint32_t pad24; // 24
36  TESModel cameraPath; // 28 - MOD2
37  };
38  static_assert(sizeof(LoadNIFData) == 0x50);
39 
40  ~TESLoadScreen() override; // 00
41 
42  // override (TESForm)
43  void InitializeData() override; // 04 - { return; }
44  void ClearData() override; // 05
45  bool Load(TESFile* a_mod) override; // 06
46  void InitItemImpl() override; // 13
47 
48  // members
52  };
53  static_assert(sizeof(TESLoadScreen) == 0x38);
54 }
Definition: TESBoundObject.h:24
Definition: TESCondition.h:987
Definition: TESFile.h:14
Definition: TESForm.h:34
Definition: TESLoadScreen.h:12
TESCondition conditions
Definition: TESLoadScreen.h:49
bool Load(TESFile *a_mod) override
static constexpr auto RTTI
Definition: TESLoadScreen.h:14
void InitializeData() override
BSFixedString loadingText
Definition: TESLoadScreen.h:51
void InitItemImpl() override
~TESLoadScreen() override
void ClearData() override
LoadNIFData * loadNIFData
Definition: TESLoadScreen.h:50
static constexpr auto FORMTYPE
Definition: TESLoadScreen.h:15
Definition: TESModel.h:16
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESLoadScreen
Definition: Offsets_RTTI.h:6014
Definition: TESLoadScreen.h:28
std::int16_t rotationOffsetConstraints[2]
Definition: TESLoadScreen.h:32
std::uint16_t pad16
Definition: TESLoadScreen.h:33
std::int16_t rotationConstraints[3]
Definition: TESLoadScreen.h:31
std::uint32_t pad24
Definition: TESLoadScreen.h:35
float initialScale
Definition: TESLoadScreen.h:30
float initialTranslationOffset[3]
Definition: TESLoadScreen.h:34
TESModel cameraPath
Definition: TESLoadScreen.h:36
TESBoundObject * loadNIF
Definition: TESLoadScreen.h:29
Definition: TESLoadScreen.h:18
RecordFlag
Definition: TESLoadScreen.h:20
@ kDeleted
Definition: TESLoadScreen.h:21
@ kIgnored
Definition: TESLoadScreen.h:23
@ kDisplaysInMainMenu
Definition: TESLoadScreen.h:22