CommonLibSSE (powerof3)
TESRegionData.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
5  class TESForm;
6 
8  {
9  public:
10  inline static constexpr auto RTTI = RTTI_TESRegionData;
11 
12  enum class Type
13  {
14  kObjects = 2,
15  kWeather = 3,
16  kMap = 4,
17  kLand = 5,
18  kGrass = 6,
19  kSound = 7,
20  kImposter = 8
21  };
22 
23  struct DataHeader // RDAT
24  {
25  public:
26  enum class Flag
27  {
28  kNone = 0,
29  kOverride = 1 << 0
30  };
31 
32  // members
34  std::uint8_t unk09; // 1
35  std::uint8_t priority; // 2
36  std::uint8_t unk0B; // 3
37  std::uint32_t unk0C; // 4
38  };
39  static_assert(sizeof(DataHeader) == 0x8);
40 
41  virtual ~TESRegionData(); // 00
42 
43  // add
44  virtual bool LoadDataHeader(void* a_arg1); // 01
45  virtual void LoadData(TESForm* a_form); // 02 - { return; }
46  [[nodiscard]] virtual Type GetType() const = 0; // 03
47  virtual void ConstructSelf() = 0; // 04
48  virtual void Unk_05(void) = 0; // 05
49  virtual void CopyFrom(TESRegionData* a_src, bool a_copy) = 0; // 06
50  [[nodiscard]] virtual bool IsLoaded() const = 0; // 07
51 
52  // members
53  DataHeader dataHeader; // 08 - RDAT
54  };
55  static_assert(sizeof(TESRegionData) == 0x10);
56 }
Definition: TESForm.h:34
Definition: TESRegionData.h:8
virtual void LoadData(TESForm *a_form)
virtual void ConstructSelf()=0
DataHeader dataHeader
Definition: TESRegionData.h:53
virtual void Unk_05(void)=0
virtual ~TESRegionData()
static constexpr auto RTTI
Definition: TESRegionData.h:10
virtual void CopyFrom(TESRegionData *a_src, bool a_copy)=0
Type
Definition: TESRegionData.h:13
virtual bool LoadDataHeader(void *a_arg1)
virtual bool IsLoaded() const =0
virtual Type GetType() const =0
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESRegionData
Definition: Offsets_RTTI.h:6056
Definition: TESRegionData.h:24
Flag
Definition: TESRegionData.h:27
std::uint8_t priority
Definition: TESRegionData.h:35
std::uint8_t unk09
Definition: TESRegionData.h:34
stl::enumeration< Flag, std::uint8_t > flags
Definition: TESRegionData.h:33
std::uint32_t unk0C
Definition: TESRegionData.h:37
std::uint8_t unk0B
Definition: TESRegionData.h:36