CommonLibSSE (Parapets fork)
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 FORMTYPE = FormType::ReferenceEffect;
13 
14  enum class Flag
15  {
16  kNone = 0,
17  kFaceTarget = 1 << 0,
18  kAttachToCamera = 1 << 1,
19  kInheritRotation = 1 << 2
20  };
21 
22  struct RecordFlags
23  {
24  enum RecordFlag : std::uint32_t
25  {
26  kDeleted = 1 << 5,
27  kIgnored = 1 << 12
28  };
29  };
30 
31  struct Data // DATA
32  {
33  public:
34  // members
38  std::uint32_t pad14; // 14
39  };
40  static_assert(sizeof(Data) == 0x18);
41 
42  ~BGSReferenceEffect() override; // 00
43 
44  // override (TESForm)
45  void InitializeData() override; // 04
46  void ClearData() override; // 05
47  bool Load(TESFile* a_mod) override; // 06
48  void InitItemImpl() override; // 13
49 
50  // members
51  Data data; // 20 - DATA
52  };
53  static_assert(sizeof(BGSReferenceEffect) == 0x38);
54 }
Definition: BGSArtObject.h:12
Definition: BGSReferenceEffect.h:9
bool Load(TESFile *a_mod) override
Flag
Definition: BGSReferenceEffect.h:15
void InitItemImpl() override
void ClearData() override
static constexpr auto RTTI
Definition: BGSReferenceEffect.h:11
Data data
Definition: BGSReferenceEffect.h:51
void InitializeData() override
~BGSReferenceEffect() override
static constexpr auto FORMTYPE
Definition: BGSReferenceEffect.h:12
Definition: TESEffectShader.h:171
Definition: TESFile.h:14
Definition: TESForm.h:34
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BGSReferenceEffect
Definition: Offsets_RTTI.h:1522
Definition: BGSReferenceEffect.h:32
std::uint32_t pad14
Definition: BGSReferenceEffect.h:38
BGSArtObject * artObject
Definition: BGSReferenceEffect.h:35
TESEffectShader * effectShader
Definition: BGSReferenceEffect.h:36
stl::enumeration< Flag, std::uint32_t > flags
Definition: BGSReferenceEffect.h:37
Definition: BGSReferenceEffect.h:23
RecordFlag
Definition: BGSReferenceEffect.h:25
@ kDeleted
Definition: BGSReferenceEffect.h:26
@ kIgnored
Definition: BGSReferenceEffect.h:27