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,35 @@
#pragma once
#include "RE/B/BGSLocalizedString.h"
#include "RE/B/BSTHashMap.h"
#include "RE/B/BaseFormComponent.h"
namespace RE
{
class __declspec(novtable) TESFullName :
public BaseFormComponent // 00
{
public:
static constexpr auto RTTI{ RTTI::TESFullName };
static constexpr auto VTABLE{ VTABLE::TESFullName };
// add
virtual std::uint32_t GetFullNameLength() const { return fullName.length(); } // 07
virtual const char* GetFullName() const { return fullName.c_str(); } // 08
[[nodiscard]] static std::string_view GetFullName(const TESForm& a_form, bool a_strict = false);
[[nodiscard]] static auto GetSparseFullNameMap()
-> BSTHashMap<const TESForm*, BGSLocalizedString>&
{
static REL::Relocation<BSTHashMap<const TESForm*, BGSLocalizedString>*> sparseFullNameMap{ ID::TESFullName::SparseFullNameMap, -0x8 };
return *sparseFullNameMap;
}
static void SetFullName(TESForm& a_form, std::string_view a_fullName);
// members
BGSLocalizedString fullName; // 08
};
static_assert(sizeof(TESFullName) == 0x10);
}