docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "RE/B/BaseFormComponent.h"
|
||||
|
||||
namespace RE
|
||||
{
|
||||
class __declspec(novtable) TESHealthForm :
|
||||
public BaseFormComponent // 00
|
||||
{
|
||||
public:
|
||||
static constexpr auto RTTI{ RTTI::TESHealthForm };
|
||||
static constexpr auto VTABLE{ VTABLE::TESHealthForm };
|
||||
|
||||
// override (BaseFormComponent)
|
||||
void InitializeDataComponent() override; // 02
|
||||
void ClearDataComponent() override; // 03
|
||||
void CopyComponent(BaseFormComponent*) override; // 06
|
||||
|
||||
[[nodiscard]] static std::uint32_t GetFormHealth(const TESForm* a_form, const TBO_InstanceData* a_data)
|
||||
{
|
||||
using func_t = decltype(&TESHealthForm::GetFormHealth);
|
||||
static REL::Relocation<func_t> func{ ID::TESHealthForm::GetFormHealth };
|
||||
return func(a_form, a_data);
|
||||
}
|
||||
|
||||
// members
|
||||
std::uint32_t health; // 08
|
||||
};
|
||||
static_assert(sizeof(TESHealthForm) == 0x10);
|
||||
}
|
||||
Reference in New Issue
Block a user