CommonLibSSE (powerof3)
TESBoundObject.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSString.h"
4 #include "RE/F/FormTypes.h"
5 #include "RE/N/NiSmartPointer.h"
6 #include "RE/T/TESObject.h"
7 
8 namespace RE
9 {
10  class NiAVObject;
11  class TESObjectREFR;
12 
14  {
15  public:
16  // members
17  std::int16_t x; // 0
18  std::int16_t y; // 2
19  std::int16_t z; // 4
20  };
21  static_assert(sizeof(NiNPShortPoint3) == 0x6);
22 
23  class TESBoundObject : public TESObject
24  {
25  public:
26  inline static constexpr auto RTTI = RTTI_TESBoundObject;
27  inline static constexpr auto VTABLE = VTABLE_TESBoundObject;
28 
29  struct BOUND_DATA // OBND
30  {
31  public:
32  // members
35  };
36  static_assert(sizeof(BOUND_DATA) == 0xC);
37 
38  ~TESBoundObject() override; // 00
39 
40  // override (TESObject)
41  void LoadObjectBound(TESFile* a_mod) override; // 26
42  bool IsBoundObject() const override; // 27 - { return true; }
43  bool Activate(TESObjectREFR* a_targetRef, TESObjectREFR* a_activatorRef, std::uint8_t a_arg3, TESBoundObject* a_object, std::int32_t a_targetCount) override; // 37
44  NiAVObject* Clone3D(TESObjectREFR* a_ref, bool a_arg3) override; // 40
45  bool ReplaceModel() override; // 44
46 
47  // add
48  virtual void SetObjectVoiceType(BGSVoiceType* a_voiceType); // 48 - { return; }
49  [[nodiscard]] virtual BGSVoiceType* GetObjectVoiceType() const; // 49 - { return 0; }
50  virtual NiAVObject* Clone3D(TESObjectREFR* a_ref); // 4A - { Clone3D(a_ref, false); }
51  virtual bool ReplaceModel(const char* a_str); // 4B
52  virtual bool GetActivateText(TESObjectREFR* a_activator, BSString& a_dst); // 4C
53  virtual bool CalculateDoFavor(Actor* a_activator, bool a_arg2, TESObjectREFR* a_toActivate, float a_arg3); // 4D
54  virtual void HandleRemoveItemFromContainer(TESObjectREFR* a_container); // 4E - { return; }
55  virtual void OnRemove3D(NiAVObject* a_obj3D); // 4F - { return; }
56  virtual void OnCheckModels(); // 50 - { return; }
57  virtual void OnCopyReference(); // 51 - { return; }
58  virtual void OnFinishScale(); // 52 - { return; }
59 
60  // members
61  BOUND_DATA boundData; // 20 - OBND
62  std::uint32_t pad2C; // 2C
63  };
64  static_assert(sizeof(TESBoundObject) == 0x30);
65 }
Definition: Actor.h:133
Definition: BGSVoiceType.h:25
Definition: NiAVObject.h:51
Definition: TESBoundObject.h:14
std::int16_t y
Definition: TESBoundObject.h:18
std::int16_t x
Definition: TESBoundObject.h:17
std::int16_t z
Definition: TESBoundObject.h:19
Definition: TESBoundObject.h:24
~TESBoundObject() override
virtual void OnRemove3D(NiAVObject *a_obj3D)
virtual void OnCopyReference()
bool IsBoundObject() const override
std::uint32_t pad2C
Definition: TESBoundObject.h:62
virtual BGSVoiceType * GetObjectVoiceType() const
virtual bool GetActivateText(TESObjectREFR *a_activator, BSString &a_dst)
virtual void SetObjectVoiceType(BGSVoiceType *a_voiceType)
virtual bool CalculateDoFavor(Actor *a_activator, bool a_arg2, TESObjectREFR *a_toActivate, float a_arg3)
void LoadObjectBound(TESFile *a_mod) override
bool ReplaceModel() override
bool Activate(TESObjectREFR *a_targetRef, TESObjectREFR *a_activatorRef, std::uint8_t a_arg3, TESBoundObject *a_object, std::int32_t a_targetCount) override
virtual NiAVObject * Clone3D(TESObjectREFR *a_ref)
virtual void OnFinishScale()
BOUND_DATA boundData
Definition: TESBoundObject.h:61
static constexpr auto VTABLE
Definition: TESBoundObject.h:27
NiAVObject * Clone3D(TESObjectREFR *a_ref, bool a_arg3) override
static constexpr auto RTTI
Definition: TESBoundObject.h:26
virtual bool ReplaceModel(const char *a_str)
virtual void HandleRemoveItemFromContainer(TESObjectREFR *a_container)
virtual void OnCheckModels()
Definition: TESFile.h:17
Definition: TESObjectREFR.h:114
Definition: TESObject.h:11
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESBoundObject(static_cast< std::uint64_t >(513852))
constexpr std::array< REL::ID, 1 > VTABLE_TESBoundObject
Definition: Offsets_VTABLE.h:12808
Definition: TESBoundObject.h:30
NiNPShortPoint3 boundMin
Definition: TESBoundObject.h:33
NiNPShortPoint3 boundMax
Definition: TESBoundObject.h:34