CommonLibSSE (powerof3)
BSHandleRefObject.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/N/NiRefObject.h"
4 
5 namespace RE
6 {
8  {
9  public:
10  inline static constexpr auto RTTI = RTTI_BSHandleRefObject;
11 
12  enum
13  {
14  kRefCountMask = 0x3FF,
15  kHandleValid = 1 << 10
16  };
17 
18  ~BSHandleRefObject() override; // 00
19 
20  void DecRefCount();
21  void IncRefCount();
22  [[nodiscard]] bool IsHandleValid() const;
23  [[nodiscard]] std::uint32_t QRefCount() const;
24  };
25  static_assert(sizeof(BSHandleRefObject) == 0x10);
26 }
Definition: BSHandleRefObject.h:8
static constexpr auto RTTI
Definition: BSHandleRefObject.h:10
~BSHandleRefObject() override
@ kHandleValid
Definition: BSHandleRefObject.h:15
@ kRefCountMask
Definition: BSHandleRefObject.h:14
bool IsHandleValid() const
std::uint32_t QRefCount() const
Definition: NiRefObject.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSHandleRefObject
Definition: Offsets_RTTI.h:1726