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
namespace RE
{
namespace BSRandom
{
inline std::uint32_t UnsignedInt(std::uint32_t a_min, std::uint32_t a_max)
{
using func_t = decltype(&BSRandom::UnsignedInt);
static REL::Relocation<func_t> func{ ID::BSRandom::UnsignedInt };
return func(a_min, a_max);
}
inline float Float(float a_min, float a_max)
{
using func_t = decltype(&BSRandom::Float);
static REL::Relocation<func_t> func{ ID::BSRandom::Float };
return func(a_min, a_max);
}
inline float Float0To1()
{
using func_t = decltype(&BSRandom::Float0To1);
static REL::Relocation<func_t> func{ ID::BSRandom::Float0To1 };
return func();
}
inline std::int32_t Int(std::int32_t a_min, std::int32_t a_max)
{
using func_t = decltype(&BSRandom::Int);
static REL::Relocation<func_t> func{ ID::BSRandom::Int };
return func(a_min, a_max);
}
}
}