CommonLibVR
BGSReferenceEffect.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/F/FormTypes.h"
4 #include "RE/T/TESForm.h"
5 
6 namespace RE
7 {
8  class BGSReferenceEffect : public TESForm
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_BGSReferenceEffect;
12  inline static constexpr auto VTABLE = VTABLE_BGSReferenceEffect;
13  inline static constexpr auto FORMTYPE = FormType::ReferenceEffect;
14 
15  enum class Flag
16  {
17  kNone = 0,
18  kFaceTarget = 1 << 0,
19  kAttachToCamera = 1 << 1,
20  kInheritRotation = 1 << 2
21  };
22 
23  struct RecordFlags
24  {
25  enum RecordFlag : std::uint32_t
26  {
27  kDeleted = 1 << 5,
28  kIgnored = 1 << 12
29  };
30  };
31 
32  struct Data // DATA
33  {
34  public:
35  // members
39  std::uint32_t pad14; // 14
40  };
41  static_assert(sizeof(Data) == 0x18);
42 
43  ~BGSReferenceEffect() override; // 00
44 
45  // override (TESForm)
46  void InitializeData() override; // 04
47  void ClearData() override; // 05
48  bool Load(TESFile* a_mod) override; // 06
49  void InitItemImpl() override; // 13
50 
51  // members
52  Data data; // 20 - DATA
53  private:
54  KEEP_FOR_RE()
55  };
56  static_assert(sizeof(BGSReferenceEffect) == 0x38);
57 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BGSArtObject.h:12
Definition: BGSReferenceEffect.h:9
bool Load(TESFile *a_mod) override
Flag
Definition: BGSReferenceEffect.h:16
void InitItemImpl() override
void ClearData() override
static constexpr auto RTTI
Definition: BGSReferenceEffect.h:11
Data data
Definition: BGSReferenceEffect.h:52
void InitializeData() override
~BGSReferenceEffect() override
static constexpr auto VTABLE
Definition: BGSReferenceEffect.h:12
static constexpr auto FORMTYPE
Definition: BGSReferenceEffect.h:13
Definition: TESEffectShader.h:182
Definition: TESFile.h:17
Definition: TESForm.h:40
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_BGSReferenceEffect
Definition: Offsets_VTABLE.h:8844
constexpr REL::ID RTTI_BGSReferenceEffect(static_cast< std::uint64_t >(513873))
Definition: BGSReferenceEffect.h:33
std::uint32_t pad14
Definition: BGSReferenceEffect.h:39
BGSArtObject * artObject
Definition: BGSReferenceEffect.h:36
TESEffectShader * effectShader
Definition: BGSReferenceEffect.h:37
stl::enumeration< Flag, std::uint32_t > flags
Definition: BGSReferenceEffect.h:38
Definition: BGSReferenceEffect.h:24
RecordFlag
Definition: BGSReferenceEffect.h:26
@ kDeleted
Definition: BGSReferenceEffect.h:27
@ kIgnored
Definition: BGSReferenceEffect.h:28