mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
21
dependencies/reboot/Project Reboot 3.0/KismetMathLibrary.cpp
vendored
Normal file
21
dependencies/reboot/Project Reboot 3.0/KismetMathLibrary.cpp
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#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, ¶ms);
|
||||
|
||||
return params.ret;
|
||||
}
|
||||
|
||||
UClass* UKismetMathLibrary::StaticClass()
|
||||
{
|
||||
static auto Class = FindObject<UClass>("/Script/Engine.KismetMathLibrary");
|
||||
return Class;
|
||||
}
|
||||
Reference in New Issue
Block a user