docs: add plugin setup guide
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user