docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "RE/B/BSFixedString.h"
|
||||
#include "RE/B/BSTEvent.h"
|
||||
#include "RE/H/HitData.h"
|
||||
#include "RE/N/NiPointer.h"
|
||||
|
||||
namespace RE
|
||||
{
|
||||
class TESHitEvent
|
||||
{
|
||||
public:
|
||||
[[nodiscard]] static BSTEventSource<TESHitEvent>* GetEventSource()
|
||||
{
|
||||
using func_t = decltype(&TESHitEvent::GetEventSource);
|
||||
static REL::Relocation<func_t> func{ ID::TESHitEvent::GetEventSource };
|
||||
return func();
|
||||
}
|
||||
|
||||
// members
|
||||
HitData hitData; // 000
|
||||
NiPointer<TESObjectREFR> target; // 0E0
|
||||
NiPointer<TESObjectREFR> cause; // 0E8
|
||||
BSFixedString material; // 0F0
|
||||
std::uint32_t sourceFormID; // 0F8
|
||||
std::uint32_t projectileFormID; // 0FC
|
||||
bool usesHitData; // 100
|
||||
};
|
||||
static_assert(sizeof(TESHitEvent) == 0x110);
|
||||
}
|
||||
Reference in New Issue
Block a user