This commit is contained in:
Milxnor
2023-03-19 11:44:05 -04:00
parent 8a4f50fd71
commit dccaca63d6
22 changed files with 361 additions and 80 deletions

View File

@@ -15,16 +15,16 @@ TArray<AActor*> UGameplayStatics::GetAllActorsOfClass(const UObject* WorldContex
return UGameplayStatics_GetAllActorsOfClass_Params.OutActors;
}
float UGameplayStatics::GetTimeSeconds(const UObject* WorldContextObject)
float UGameplayStatics::GetTimeSeconds(UObject* WorldContextObject)
{
static auto fn = FindObject<UFunction>(L"/Script/Engine.GameplayStatics.GetTimeSeconds");
float TimeSeconds = 0;
struct { UObject* WorldContextObject; float TimeSeconds; } GetTimeSecondsParams{WorldContextObject};
static auto defaultObj = StaticClass();
defaultObj->ProcessEvent(fn, &TimeSeconds);
defaultObj->ProcessEvent(fn, &GetTimeSecondsParams);
return TimeSeconds;
return GetTimeSecondsParams.TimeSeconds;
}
UObject* UGameplayStatics::SpawnObject(UClass* ObjectClass, UObject* Outer)