CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
BSTempEffect.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/N/NiObject.h"
4
5namespace RE
6{
7 class BGSLoadGameBuffer;
8 class BGSSaveGameBuffer;
9 class NiAVObject;
10 class TESObjectCELL;
11
13 {
14 kTerrain = 0,
15 kWeaponBlood = 1,
16 kDecal = 2,
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
BSSegmentedTriShape * AsSegmentedTriShape() override
virtual void LoadGame(BGSLoadGameBuffer *a_buf)
bhkLimitedHingeConstraint * AsBhkLimitedHingeConstraint() override
BSGeometry * AsGeometry() override
NiSwitchNode * AsSwitchNode() override
NiNode * AsNode() override
BSFadeNode * AsFadeNode() override
virtual bool GetStackableMatch(BSTempEffect *a_effect) const
virtual void FinishLoadGame(BGSLoadGameBuffer *a_buf)
NiTriStrips * AsTriStrips() override
virtual bool GetStackable() const
std::uint16_t pad26
Definition: BSTempEffect.h:85
BSLines * AsLinesGeom() override
static constexpr auto Ni_RTTI
Definition: BSTempEffect.h:32
BSDynamicTriShape * AsDynamicTriShape() override
virtual void Attach()
static constexpr auto RTTI
Definition: BSTempEffect.h:31
bhkNiCollisionObject * AsBhkNiCollisionObject() override
virtual void SetInterfaceEffect(bool a_set)
bhkBlendCollisionObject * AsBhkBlendCollisionObject() override
NiTriShape * AsNiTriShape() override
std::uint32_t pad2C
Definition: BSTempEffect.h:87
virtual TEMP_EFFECT_TYPE GetType() const
BSTriShape * AsTriShape() override
BSSubIndexTriShape * AsSubIndexTriShape() override
NiParticles * AsParticlesGeom() override
TESObjectCELL * cell
Definition: BSTempEffect.h:81
BSMultiBoundNode * AsMultiBoundNode() override
~BSTempEffect() override
virtual bool IsInterfaceEffect() const
virtual bool GetClearWhenCellIsUnloaded() const
const NiRTTI * GetRTTI() const override
virtual void Initialize()
virtual void Push()
float lifetime
Definition: BSTempEffect.h:79
virtual NiAVObject * Get3D() const
NiTriBasedGeom * AsNiTriBasedGeom() override
float age
Definition: BSTempEffect.h:82
bhkAttachmentCollisionObject * AsBhkAttachmentCollisionObject() override
virtual bool Update(float a_arg1)
bool initialized
Definition: BSTempEffect.h:83
std::uint32_t effectID
Definition: BSTempEffect.h:86
virtual void Detach()
bhkRigidBody * AsBhkRigidBody() override
virtual void Pop()
std::uint8_t pad25
Definition: BSTempEffect.h:84
virtual void SaveGame(BGSSaveGameBuffer *a_buf)
NiGeometry * AsNiGeometry() override
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 NiRTTI_BSTempEffect
Definition: Offsets_NiRTTI.h:119
constexpr REL::ID RTTI_BSTempEffect
Definition: Offsets_RTTI.h:3608