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,33 @@
#pragma once
#include "RE/B/BSTEvent.h"
#include "RE/N/NiPointer.h"
namespace RE
{
class TESFurnitureEvent
{
public:
enum class FurnitureEventType : std::int32_t
{
kEnter = 0x0,
kExit = 0x1
};
[[nodiscard]] static BSTEventSource<TESFurnitureEvent>* GetEventSource()
{
using func_t = decltype(&TESFurnitureEvent::GetEventSource);
static REL::Relocation<func_t> func{ ID::TESFurnitureEvent::GetEventSource };
return func();
}
[[nodiscard]] constexpr bool IsEnter() const noexcept { return type.all(FurnitureEventType::kEnter); }
[[nodiscard]] constexpr bool IsExit() const noexcept { return type.all(FurnitureEventType::kExit); }
// members
NiPointer<TESObjectREFR> actor; // 00
NiPointer<TESObjectREFR> targetFurniture; // 08
REX::TEnumSet<FurnitureEventType, std::int32_t> type; // 10
};
static_assert(sizeof(TESFurnitureEvent) == 0x18);
}