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,31 @@
#pragma once
#include "RE/B/BSPointerHandle.h"
#include "RE/T/TESObjectREFR.h"
namespace RE
{
class BGSCraftItemEvent
{
public:
BGSCraftItemEvent(TESObjectREFR* a_workbench, BGSLocation* a_location, TESForm* a_baseObject) :
location(a_location), createdItemBase(a_baseObject)
{
if (a_workbench) {
workbench = a_workbench->GetHandle();
}
}
[[nodiscard]] static std::uint32_t EVENT_INDEX()
{
static REL::Relocation<std::uint32_t*> eventIdx{ ID::BGSCraftItemEvent::EventIndex };
return *eventIdx;
}
// members
ObjectRefHandle workbench; // 00
BGSLocation* location; // 08
TESForm* createdItemBase; // 10
};
static_assert(sizeof(BGSCraftItemEvent) == 0x18);
}