90 lines
1.7 KiB
C++
Executable File
90 lines
1.7 KiB
C++
Executable File
//PUBGM(0.13.5)32位SDK
|
|
//作者:清华
|
|
//Telegram:@qinghuanb666
|
|
//生成时间:Fri Apr 18 20:44:39 2025
|
|
|
|
#include "../SDK.hpp"
|
|
|
|
namespace SDK
|
|
{
|
|
//---------------------------------------------------------------------------
|
|
//Functions
|
|
//---------------------------------------------------------------------------
|
|
|
|
std::string UObject::GetName() const
|
|
{
|
|
std::string name(NamePrivate.GetName());
|
|
if (NamePrivate.Number > 0)
|
|
{
|
|
name += '_' + std::to_string(NamePrivate.Number);
|
|
}
|
|
|
|
auto pos = name.rfind('/');
|
|
if (pos == std::string::npos)
|
|
{
|
|
return name;
|
|
}
|
|
|
|
return name.substr(pos + 1);
|
|
}
|
|
|
|
std::string UObject::GetFullName() const
|
|
{
|
|
std::string name;
|
|
|
|
if (ClassPrivate != nullptr)
|
|
{
|
|
std::string temp;
|
|
for (auto p = OuterPrivate; p; p = p->OuterPrivate)
|
|
{
|
|
temp = p->GetName() + "." + temp;
|
|
}
|
|
|
|
name = ClassPrivate->GetName();
|
|
name += " ";
|
|
name += temp;
|
|
name += GetName();
|
|
}
|
|
|
|
return name;
|
|
}
|
|
|
|
bool UObject::IsA(UClass* cmp) const
|
|
{
|
|
for (auto super = ClassPrivate; super; super = static_cast<UClass*>(super->SuperStruct))
|
|
{
|
|
if (super == cmp)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// Function CoreUObject.Object.ExecuteUbergraph
|
|
// (Event, Public, BlueprintEvent)
|
|
// Parameters:
|
|
// int EntryPoint (Parm, ZeroConstructor, IsPlainOldData)
|
|
|
|
void UObject::ExecuteUbergraph(int EntryPoint)
|
|
{
|
|
static UFunction *pFunc = 0;
|
|
if (!pFunc)
|
|
pFunc = UObject::FindObject<UFunction>("Function CoreUObject.Object.ExecuteUbergraph");
|
|
|
|
UObject_ExecuteUbergraph_Params params;
|
|
params.EntryPoint = EntryPoint;
|
|
|
|
auto flags = pFunc->FunctionFlags;
|
|
|
|
UObject *currentObj = (UObject *) this;
|
|
currentObj->ProcessEvent(pFunc, ¶ms);
|
|
|
|
pFunc->FunctionFlags = flags;
|
|
}
|
|
|
|
|
|
}
|
|
|