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,27 @@
#pragma once
#include "RE/H/hknpBodyId.h"
namespace RE
{
class bhkNPCollisionObject;
class hknpBSWorld;
class NiAVObject;
namespace bhkUtilFunctions
{
inline bhkNPCollisionObject* FindFirstCollisionObject(const NiAVObject* a_object)
{
using func_t = decltype(&bhkUtilFunctions::FindFirstCollisionObject);
static REL::Relocation<func_t> func{ ID::bhkUtilFunctions::FindFirstCollisionObject };
return func(a_object);
}
inline NiAVObject* GetAVObjectFromBodyID(const hknpBSWorld* a_world, const hknpBodyId a_bodyID)
{
using func_t = decltype(&bhkUtilFunctions::GetAVObjectFromBodyID);
static REL::Relocation<func_t> func{ ID::bhkUtilFunctions::GetAVObjectFromBodyID };
return func(a_world, a_bodyID);
}
}
}