mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
21 lines
533 B
C++
21 lines
533 B
C++
#include "KismetMathLibrary.h"
|
|
|
|
#include "reboot.h"
|
|
|
|
float UKismetMathLibrary::RandomFloatInRange(float min, float max)
|
|
{
|
|
static auto fn = FindObject<UFunction>(L"/Script/Engine.KismetMathLibrary.RandomFloatInRange");
|
|
|
|
struct { float min; float max; float ret; } params{min, max};
|
|
|
|
static auto DefaultObject = StaticClass();
|
|
DefaultObject->ProcessEvent(fn, ¶ms);
|
|
|
|
return params.ret;
|
|
}
|
|
|
|
UClass* UKismetMathLibrary::StaticClass()
|
|
{
|
|
static auto Class = FindObject<UClass>(L"/Script/Engine.KismetMathLibrary");
|
|
return Class;
|
|
} |