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
+14
View File
@@ -0,0 +1,14 @@
#include "RE/A/Actor.h"
#include "RE/T/TESBoundObject.h"
#include "RE/T/TESNPC.h"
namespace RE
{
TESNPC* Actor::GetNPC() const noexcept
{
const auto objRef = GetObjectReference();
assert(objRef->GetFormType() == ENUM_FORM_ID::kNPC_);
return static_cast<TESNPC*>(objRef);
}
}