第一次上传

This commit is contained in:
gcdsfh145
2026-05-02 14:30:03 +08:00
parent e608ad8612
commit 8bff0040f2
3231 changed files with 652400 additions and 1 deletions
+49
View File
@@ -0,0 +1,49 @@
//PUBGM(0.13.5)32位SDK
//作者:清华
//Telegram:@qinghuanb666
//生成时间:Fri Apr 18 20:44:54 2025
#include "../SDK.hpp"
namespace SDK
{
TNameEntryArray* FName::GNames = nullptr;
FUObjectArray* UObject::GUObjectArray = nullptr;
//---------------------------------------------------------------------------
bool FWeakObjectPtr::IsValid() const
{
if (ObjectSerialNumber == 0)
{
return false;
}
if (ObjectIndex < 0)
{
return false;
}
auto ObjectItem = UObject::GetGlobalObjects().GetItemByIndex(ObjectIndex);
if (!ObjectItem)
{
return false;
}
if (!SerialNumbersMatch(ObjectItem))
{
return false;
}
return !(ObjectItem->IsUnreachable() || ObjectItem->IsPendingKill());
}
//---------------------------------------------------------------------------
UObject* FWeakObjectPtr::Get() const
{
if (IsValid())
{
auto ObjectItem = UObject::GetGlobalObjects().GetItemByIndex(ObjectIndex);
if (ObjectItem)
{
return ObjectItem->Object;
}
}
return nullptr;
}
//---------------------------------------------------------------------------
}