CommonLibSSE NG
ExtraOwnership.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSExtraData.h"
4 #include "RE/E/ExtraDataTypes.h"
5 
6 namespace RE
7 {
8  class TESForm;
9 
10  class ExtraOwnership : public BSExtraData
11  {
12  public:
13  inline static constexpr auto RTTI = RTTI_ExtraOwnership;
14  inline static constexpr auto VTABLE = VTABLE_ExtraOwnership;
16 
18  explicit ExtraOwnership(TESForm* a_owner);
19  ~ExtraOwnership() override = default; // 00
20 
21  // override (BSExtraData)
22  ExtraDataType GetType() const override; // 01 - { return kOwnership; }
23  bool IsNotEqual(const BSExtraData* a_rhs) const override; // 02 - { return owner != a_rhs->owner; }
24 
25  // members
26  TESForm* owner; // 10
27  };
28  static_assert(sizeof(ExtraOwnership) == 0x18);
29 }
Definition: BSExtraData.h:9
Definition: ExtraOwnership.h:11
ExtraOwnership(TESForm *a_owner)
static constexpr auto VTABLE
Definition: ExtraOwnership.h:14
static constexpr auto RTTI
Definition: ExtraOwnership.h:13
static auto EXTRADATATYPE
Definition: ExtraOwnership.h:15
ExtraDataType GetType() const override
~ExtraOwnership() override=default
TESForm * owner
Definition: ExtraOwnership.h:26
bool IsNotEqual(const BSExtraData *a_rhs) const override
Definition: TESForm.h:36
Definition: AbsorbEffect.h:6
constexpr REL::VariantID RTTI_ExtraOwnership(684646, 392309, 0x1ed80e8)
constexpr std::array< REL::VariantID, 1 > VTABLE_ExtraOwnership
Definition: Offsets_VTABLE.h:76
ExtraDataType
Definition: ExtraDataTypes.h:173