docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include "RE/B/BGSInventoryItem.h"
|
||||
#include "RE/B/BSTArray.h"
|
||||
#include "RE/B/BSTTuple.h"
|
||||
|
||||
namespace RE
|
||||
{
|
||||
namespace PipboyInventoryUtils
|
||||
{
|
||||
enum class PAPER_DOLL_ARMOR_SLOTS
|
||||
{
|
||||
kUnderwear = 0x0,
|
||||
kLeftLeg = 0x1,
|
||||
kRightLeg = 0x2,
|
||||
kLeftArm = 0x3,
|
||||
kRightArm = 0x4,
|
||||
kTorso = 0x5,
|
||||
kHelmet = 0x6,
|
||||
kGoggles = 0x7,
|
||||
kGasMask = 0x8
|
||||
};
|
||||
|
||||
inline bool DoSlotsOverlap(const TESObjectARMO* a_armor1, const TESObjectARMO* a_armor2)
|
||||
{
|
||||
using func_t = decltype(&DoSlotsOverlap);
|
||||
static REL::Relocation<func_t> func{ ID::PipboyInventoryUtils::DoSlotsOverlap };
|
||||
return func(a_armor1, a_armor2);
|
||||
}
|
||||
|
||||
inline void FillDamageTypeInfo(const BGSInventoryItem& a_item, const BGSInventoryItem::Stack* a_stack, BSScrapArray<BSTTuple<std::uint32_t, float>>& a_damageValuesPerType)
|
||||
{
|
||||
using func_t = decltype(&FillDamageTypeInfo);
|
||||
static REL::Relocation<func_t> func{ ID::PipboyInventoryUtils::FillDamageTypeInfo };
|
||||
return func(a_item, a_stack, a_damageValuesPerType);
|
||||
}
|
||||
|
||||
inline void FillResistTypeInfo(const BGSInventoryItem& a_item, const BGSInventoryItem::Stack* a_stack, BSScrapArray<BSTTuple<std::uint32_t, float>>& a_resistValuesPerType, float a_scale)
|
||||
{
|
||||
using func_t = decltype(&FillResistTypeInfo);
|
||||
static REL::Relocation<func_t> func{ ID::PipboyInventoryUtils::FillResistTypeInfo };
|
||||
return func(a_item, a_stack, a_resistValuesPerType, a_scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user