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,26 @@
#pragma once
#include "RE/B/BSTEvent.h"
namespace RE
{
class PowerArmorLightData
{
private:
using EventSource_t = BSTGlobalEvent::EventSource<PowerArmorLightData>;
public:
[[nodiscard]] static EventSource_t* GetEventSource()
{
static REL::Relocation<EventSource_t**> singleton{ ID::PowerArmorLightData::GetEventSource };
if (!*singleton) {
*singleton = new EventSource_t(&BSTGlobalEvent::GetSingleton()->eventSourceSDMKiller);
}
return *singleton;
}
// members
bool lightOn; // 00
};
static_assert(sizeof(PowerArmorLightData) == 0x1);
}