mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
Dude 💀
This commit is contained in:
@@ -7,6 +7,21 @@
|
||||
#include "UObjectArray.h"
|
||||
#include "Package.h"
|
||||
|
||||
UObject* UObject::GetTypedOuter(UClass* Target) const
|
||||
{
|
||||
// ensureMsgf(Target != UPackage::StaticClass(), TEXT("Calling GetTypedOuter to retrieve a package is now invalid, you should use GetPackage() instead."));
|
||||
|
||||
UObject* Result = NULL;
|
||||
for (UObject* NextOuter = GetOuter(); Result == NULL && NextOuter != NULL; NextOuter = NextOuter->GetOuter())
|
||||
{
|
||||
if (NextOuter->IsA(Target))
|
||||
{
|
||||
Result = NextOuter;
|
||||
}
|
||||
}
|
||||
return Result;
|
||||
}
|
||||
|
||||
void* UObject::GetProperty(const std::string& ChildName, bool bWarnIfNotFound) const
|
||||
{
|
||||
for (auto CurrentClass = ClassPrivate; CurrentClass; CurrentClass = *(UClass**)(__int64(CurrentClass) + Offsets::SuperStruct))
|
||||
|
||||
Reference in New Issue
Block a user