CommonLibSSE (Parapets fork)
BGSMovableStatic.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/F/FormTypes.h"
5 #include "RE/T/TESFullName.h"
6 #include "RE/T/TESObjectSTAT.h"
7 
8 namespace RE
9 {
11  {
12  public:
13  enum class Flag
14  {
15  kNone = 0,
16  kOnLocalMap = 1 << 0
17  };
18 
19  // members
21  };
22  static_assert(sizeof(MOVABLE_STATIC_DATA) == 0x1);
23 
25  public TESFullName, // 00
26  public BGSDestructibleObjectForm, // 10
27  public TESObjectSTAT // 20
28  {
29  public:
30  inline static constexpr auto RTTI = RTTI_BGSMovableStatic;
31  inline static constexpr auto FORMTYPE = FormType::MovableStatic;
32 
33  struct RecordFlags
34  {
35  enum RecordFlag : std::uint32_t
36  {
37  kDeleted = 1 << 5,
38  kMustUpdateAnims = 1 << 8,
40  kIgnored = 1 << 12,
41  kHasDistantLOD = 1 << 15,
42  kRandomAnimStart = 1 << 16,
43  kHasCurrents = 1 << 19,
44  kObstacle = 1 << 25,
48  };
49  };
50 
51  ~BGSMovableStatic() override; // 00
52 
53  // override (TESObjectSTAT)
54  void InitializeData() override; // 04
55  bool Load(TESFile* a_mod) override; // 06
56  void InitItemImpl() override; // 13
57 
58  // members
61  std::uint8_t padA9; // A9
62  std::uint16_t padAA; // AA
63  std::uint32_t padAC; // AC
64  };
65  static_assert(sizeof(BGSMovableStatic) == 0xB0);
66 }
Definition: BGSDestructibleObjectForm.h:61
Definition: BGSMovableStatic.h:28
~BGSMovableStatic() override
std::uint32_t padAC
Definition: BGSMovableStatic.h:63
MOVABLE_STATIC_DATA data
Definition: BGSMovableStatic.h:60
static constexpr auto FORMTYPE
Definition: BGSMovableStatic.h:31
std::uint16_t padAA
Definition: BGSMovableStatic.h:62
void InitializeData() override
BGSSoundDescriptorForm * soundLoop
Definition: BGSMovableStatic.h:59
static constexpr auto RTTI
Definition: BGSMovableStatic.h:30
bool Load(TESFile *a_mod) override
void InitItemImpl() override
std::uint8_t padA9
Definition: BGSMovableStatic.h:61
Definition: BGSSoundDescriptorForm.h:14
Definition: TESFile.h:14
Definition: TESFullName.h:9
Definition: TESObjectSTAT.h:29
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BGSMovableStatic
Definition: Offsets_RTTI.h:1332
Definition: BGSMovableStatic.h:34
RecordFlag
Definition: BGSMovableStatic.h:36
@ kHasDistantLOD
Definition: BGSMovableStatic.h:41
@ kRandomAnimStart
Definition: BGSMovableStatic.h:42
@ kNavMeshGeneration_BoundingBox
Definition: BGSMovableStatic.h:46
@ kHiddenFromLocalMap
Definition: BGSMovableStatic.h:39
@ kHasCurrents
Definition: BGSMovableStatic.h:43
@ kNavMeshGeneration_Filter
Definition: BGSMovableStatic.h:45
@ kIgnored
Definition: BGSMovableStatic.h:40
@ kMustUpdateAnims
Definition: BGSMovableStatic.h:38
@ kNavMeshGeneration_Ground
Definition: BGSMovableStatic.h:47
@ kDeleted
Definition: BGSMovableStatic.h:37
@ kObstacle
Definition: BGSMovableStatic.h:44
Definition: BGSMovableStatic.h:11
stl::enumeration< Flag, std::uint8_t > flags
Definition: BGSMovableStatic.h:20
Flag
Definition: BGSMovableStatic.h:14