Files
Reboot-Launcher/dependencies/reboot/Project Reboot 3.0/KismetMathLibrary.cpp
Alessandro Autiero b41e22adeb <feat: New project structure>
<feat: New release>
2023-09-02 15:34:15 +02:00

21 lines
531 B
C++

#include "KismetMathLibrary.h"
#include "reboot.h"
float UKismetMathLibrary::RandomFloatInRange(float min, float max)
{
static auto fn = FindObject<UFunction>("/Script/Engine.KismetMathLibrary.RandomFloatInRange");
struct { float min; float max; float ret; } params{min, max};
static auto DefaultObject = StaticClass();
DefaultObject->ProcessEvent(fn, &params);
return params.ret;
}
UClass* UKismetMathLibrary::StaticClass()
{
static auto Class = FindObject<UClass>("/Script/Engine.KismetMathLibrary");
return Class;
}