mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a lot
fix 1.11 replication, fix some ltm specific stuff, start on shadow stones, fix some events not having foundations, fix s4-s6 gadgets, fix clear inventory on some versions
This commit is contained in:
@@ -155,6 +155,23 @@ bool UObject::IsA(UClass* otherClass)
|
||||
return false;
|
||||
}
|
||||
|
||||
UFunction* UObject::FindFunction(const std::string& ShortFunctionName)
|
||||
{
|
||||
// We could also loop through children.
|
||||
|
||||
UClass* super = ClassPrivate;
|
||||
|
||||
while (super)
|
||||
{
|
||||
if (auto Func = FindObject<UFunction>(super->GetPathName() + "." + ShortFunctionName))
|
||||
return Func;
|
||||
|
||||
super = super->GetSuperStruct();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/* class UClass* UObject::StaticClass()
|
||||
{
|
||||
static auto Class = FindObject<UClass>("/Script/CoreUObject.Object");
|
||||
|
||||
Reference in New Issue
Block a user