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,31 @@
#pragma once
#include "RE/H/hkArray.h"
#include "RE/H/hkReferencedObject.h"
namespace RE
{
class hkProcess;
class hkProcessContext;
class __declspec(novtable) hkProcessFactory :
public hkReferencedObject
{
public:
inline static constexpr auto RTTI{ RTTI::hkProcessFactory };
inline static constexpr auto VTABLE{ VTABLE::hkProcessFactory };
inline static hkProcessFactory* GetSingleton()
{
static REL::Relocation<hkProcessFactory*> singleton{ ID::hkProcessFactory::Singleton };
return singleton.get();
}
hkProcess* CreateProcess(const char* a_name, hkArray<hkProcessContext*>& a_contexts)
{
using func_t = decltype(&hkProcessFactory::CreateProcess);
static REL::Relocation<func_t> func{ ID::hkProcessFactory::CreateProcess };
return func(this, a_name, a_contexts);
}
};
}