CommonLibSSE (powerof3)
ExtraUniqueID.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 ExtraUniqueID : public BSExtraData
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_ExtraUniqueID;
12  inline static constexpr auto EXTRADATATYPE = ExtraDataType::kUniqueID;
13 
15  ExtraUniqueID(FormID a_baseID, std::uint16_t a_uniqueID);
16  ~ExtraUniqueID() override = default; // 00
17 
18  // override (BSExtraData)
19  ExtraDataType GetType() const override; // 01 - { return kUniqueID; }
20  bool IsNotEqual(const BSExtraData* a_rhs) const override; // 02 - { return uniqueID != a_rhs->uniqueID || baseID != a_rhs->baseID; }
21 
22  // members
23  FormID baseID; // 10
24  std::uint16_t uniqueID; // 14
25  std::uint16_t pad16; // 16
26  };
27  static_assert(sizeof(ExtraUniqueID) == 0x18);
28 }
Definition: BSExtraData.h:9
Definition: ExtraUniqueID.h:9
FormID baseID
Definition: ExtraUniqueID.h:23
std::uint16_t pad16
Definition: ExtraUniqueID.h:25
ExtraDataType GetType() const override
static constexpr auto RTTI
Definition: ExtraUniqueID.h:11
static constexpr auto EXTRADATATYPE
Definition: ExtraUniqueID.h:12
~ExtraUniqueID() override=default
std::uint16_t uniqueID
Definition: ExtraUniqueID.h:24
ExtraUniqueID(FormID a_baseID, std::uint16_t a_uniqueID)
bool IsNotEqual(const BSExtraData *a_rhs) const override
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_ExtraUniqueID
Definition: Offsets_RTTI.h:4776
std::uint32_t FormID
Definition: BSCoreTypes.h:5
ExtraDataType
Definition: ExtraDataTypes.h:173