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,27 @@
#pragma once
#include "RE/B/BSTEvent.h"
#include "RE/B/BSTSingleton.h"
#include "RE/C/CellAttachDetachEvent.h"
namespace RE
{
namespace CellAttachDetachEventSource
{
class CellAttachDetachEventSourceSingleton :
public BSTSingletonImplicit<CellAttachDetachEventSourceSingleton>
{
public:
[[nodiscard]] static CellAttachDetachEventSourceSingleton& GetSingleton()
{
using func_t = decltype(&CellAttachDetachEventSourceSingleton::GetSingleton);
static REL::Relocation<func_t> func{ ID::CellAttachDetachEvent::GetEventSource };
return func();
}
// members
BSTEventSource<CellAttachDetachEvent> source; // 00
};
static_assert(sizeof(CellAttachDetachEventSourceSingleton) == 0x58);
}
}