docs: add plugin setup guide
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user