CommonLibSSE (powerof3)
BSTempEffect.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/N/NiObject.h"
4 
5 namespace RE
6 {
7  class BGSLoadGameBuffer;
8  class BGSSaveGameBuffer;
9  class NiAVObject;
10  class TESObjectCELL;
11 
12  enum class TEMP_EFFECT_TYPE
13  {
14  kTerrain = 0,
15  kWeaponBlood = 1,
16  kDecal = 2,
17  kGeometryDecal = 3,
18  kParticle = 4,
19  kDebris = 5,
20  kSPG = 6,
21  kDefault = 7,
22  kRefDefault = 8,
23  kRefModel = 9,
24  kRefShader = 10,
25  kMagicSummon = 11
26  };
27 
28  class BSTempEffect : public NiObject
29  {
30  public:
31  inline static constexpr auto RTTI = RTTI_BSTempEffect;
32  inline static constexpr auto Ni_RTTI = NiRTTI_BSTempEffect;
33 
34  ~BSTempEffect() override; // 00
35 
36  // override (NiObject)
37  const NiRTTI* GetRTTI() const override; // 02
38  NiNode* AsNode() override; // 03 - { return 0; }
39  NiSwitchNode* AsSwitchNode() override; // 04 - { return 0; }
40  BSFadeNode* AsFadeNode() override; // 05 - { return 0; }
41  BSMultiBoundNode* AsMultiBoundNode() override; // 06 - { return 0; }
42  BSGeometry* AsGeometry() override; // 07 - { return 0; }
43  NiTriStrips* AsTriStrips() override; // 08 - { return 0; }
44  BSTriShape* AsTriShape() override; // 09 - { return 0; }
45  BSSegmentedTriShape* AsSegmentedTriShape() override; // 0A - { return 0; }
46  BSSubIndexTriShape* AsSubIndexTriShape() override; // 0B - { return 0; }
47  BSDynamicTriShape* AsDynamicTriShape() override; // 0C - { return 0; }
48  NiGeometry* AsNiGeometry() override; // 0D - { return 0; }
49  NiTriBasedGeom* AsNiTriBasedGeom() override; // 0E - { return 0; }
50  NiTriShape* AsNiTriShape() override; // 0F - { return 0; }
51  NiParticles* AsParticlesGeom() override; // 10 - { return 0; }
52  BSLines* AsLinesGeom() override; // 11 - { return 0; }
53  bhkNiCollisionObject* AsBhkNiCollisionObject() override; // 12 - { return 0; }
54  bhkBlendCollisionObject* AsBhkBlendCollisionObject() override; // 13 - { return 0; }
55  bhkAttachmentCollisionObject* AsBhkAttachmentCollisionObject() override; // 14 - { return 0; }
56  bhkRigidBody* AsBhkRigidBody() override; // 15 - { return 0; }
57  bhkLimitedHingeConstraint* AsBhkLimitedHingeConstraint() override; // 16 - { return 0; }
58 
59  // add
60  virtual void Initialize(); // 25 - { initialized = true; }
61  virtual void Attach(); // 26 - { return; }
62  virtual void Detach(); // 27 - { return; }
63  virtual bool Update(float a_arg1); // 28
64  [[nodiscard]] virtual NiAVObject* Get3D() const; // 29 - { return 0; }
65  [[nodiscard]] virtual bool GetManagerHandlesSaveLoad() const; // 2A - { return true; }
66  [[nodiscard]] virtual bool GetClearWhenCellIsUnloaded() const; // 2B - { return true; }
67  [[nodiscard]] virtual TEMP_EFFECT_TYPE GetType() const; // 2C - { return 7; }
68  virtual void SaveGame(BGSSaveGameBuffer* a_buf); // 2D
69  virtual void LoadGame(BGSLoadGameBuffer* a_buf); // 2E
70  virtual void FinishLoadGame(BGSLoadGameBuffer* a_buf); // 2F - { return; }
71  [[nodiscard]] virtual bool IsInterfaceEffect() const; // 30 - { return false; }
72  virtual void SetInterfaceEffect(bool a_set); // 31 - { return; }
73  [[nodiscard]] virtual bool GetStackable() const; // 32 - { return false; }
74  virtual bool GetStackableMatch(BSTempEffect* a_effect) const; // 33 - { return false; }
75  virtual void Push(); // 34 - { return; }
76  virtual void Pop(); // 35 - { return; }
77 
78  // members
79  float lifetime; // 10
80  std::uint32_t pad14; // 14
82  float age; // 20
83  bool initialized; // 24
84  std::uint8_t pad25; // 25
85  std::uint16_t pad26; // 26
86  std::uint32_t effectID; // 28
87  std::uint32_t pad2C; // 2C
88  };
89  static_assert(sizeof(BSTempEffect) == 0x30);
90 }
Definition: BSFadeNode.h:11
Definition: BSGeometry.h:14
Definition: BSMultiBoundNode.h:14
Definition: BSTempEffect.h:29
virtual void LoadGame(BGSLoadGameBuffer *a_buf)
BSSegmentedTriShape * AsSegmentedTriShape() override
bhkAttachmentCollisionObject * AsBhkAttachmentCollisionObject() override
NiTriStrips * AsTriStrips() override
virtual bool GetStackableMatch(BSTempEffect *a_effect) const
virtual void FinishLoadGame(BGSLoadGameBuffer *a_buf)
virtual bool GetStackable() const
std::uint16_t pad26
Definition: BSTempEffect.h:85
BSGeometry * AsGeometry() override
NiTriShape * AsNiTriShape() override
static constexpr auto Ni_RTTI
Definition: BSTempEffect.h:32
virtual void Attach()
static constexpr auto RTTI
Definition: BSTempEffect.h:31
BSLines * AsLinesGeom() override
virtual void SetInterfaceEffect(bool a_set)
BSTriShape * AsTriShape() override
BSSubIndexTriShape * AsSubIndexTriShape() override
std::uint32_t pad2C
Definition: BSTempEffect.h:87
virtual TEMP_EFFECT_TYPE GetType() const
bhkBlendCollisionObject * AsBhkBlendCollisionObject() override
BSMultiBoundNode * AsMultiBoundNode() override
TESObjectCELL * cell
Definition: BSTempEffect.h:81
bhkNiCollisionObject * AsBhkNiCollisionObject() override
~BSTempEffect() override
virtual bool IsInterfaceEffect() const
virtual bool GetClearWhenCellIsUnloaded() const
virtual void Initialize()
virtual void Push()
float lifetime
Definition: BSTempEffect.h:79
NiParticles * AsParticlesGeom() override
BSDynamicTriShape * AsDynamicTriShape() override
NiNode * AsNode() override
float age
Definition: BSTempEffect.h:82
bhkLimitedHingeConstraint * AsBhkLimitedHingeConstraint() override
virtual bool Update(float a_arg1)
bool initialized
Definition: BSTempEffect.h:83
NiGeometry * AsNiGeometry() override
virtual NiAVObject * Get3D() const
bhkRigidBody * AsBhkRigidBody() override
BSFadeNode * AsFadeNode() override
NiTriBasedGeom * AsNiTriBasedGeom() override
std::uint32_t effectID
Definition: BSTempEffect.h:86
virtual void Detach()
NiSwitchNode * AsSwitchNode() override
virtual void Pop()
std::uint8_t pad25
Definition: BSTempEffect.h:84
const NiRTTI * GetRTTI() const override
virtual void SaveGame(BGSSaveGameBuffer *a_buf)
std::uint32_t pad14
Definition: BSTempEffect.h:80
virtual bool GetManagerHandlesSaveLoad() const
Definition: BSTriShape.h:8
Definition: NiAVObject.h:45
Definition: NiNode.h:12
Definition: NiObject.h:37
Definition: NiRTTI.h:6
Definition: TESObjectCELL.h:102
Definition: bhkNiCollisionObject.h:11
Definition: bhkRigidBody.h:9
Definition: AbsorbEffect.h:6
TEMP_EFFECT_TYPE
Definition: BSTempEffect.h:13
constexpr REL::ID RTTI_BSTempEffect
Definition: Offsets_RTTI.h:3608
constexpr REL::ID NiRTTI_BSTempEffect
Definition: Offsets_NiRTTI.h:119