docs: add plugin setup guide

This commit is contained in:
2026-05-30 18:33:24 +12:00
parent f3db41c402
commit b61043a3fe
1776 changed files with 122386 additions and 2 deletions
@@ -0,0 +1,30 @@
#pragma once
namespace RE
{
class BSIntrusiveRefCounted
{
public:
static constexpr auto RTTI{ RTTI::BSIntrusiveRefCounted };
constexpr BSIntrusiveRefCounted() noexcept {} // NOLINT(modernize-use-equals-default)
[[nodiscard]] std::uint32_t DecRef() const
{
REX::TAtomicRef myRefCount{ refCount };
return --myRefCount;
}
std::uint32_t IncRef() const
{
REX::TAtomicRef myRefCount{ refCount };
return ++myRefCount;
}
[[nodiscard]] constexpr std::uint32_t QRefCount() const noexcept { return refCount; }
// members
mutable std::uint32_t refCount{ 0 }; // 0
};
static_assert(sizeof(BSIntrusiveRefCounted) == 0x4);
}