Dude 💀

This commit is contained in:
Gray
2024-03-20 21:45:38 -04:00
parent 138d3cc668
commit b3d9ab9e8b
46 changed files with 2846 additions and 1608 deletions

View File

@@ -13,6 +13,19 @@ public:
return ChunkedObjects ? ChunkedObjects->GetObjectByIndex(ObjectIndex) : UnchunkedObjects ? UnchunkedObjects->GetObjectByIndex(ObjectIndex) : nullptr;
}
FORCEINLINE bool operator==(const FWeakObjectPtr& Other) const
{
return
(ObjectIndex == Other.ObjectIndex && ObjectSerialNumber == Other.ObjectSerialNumber)
// || (!IsValid() && !Other.IsValid())
;
}
friend uint32 GetTypeHash(const FWeakObjectPtr& WeakObjectPtr)
{
return uint32(WeakObjectPtr.ObjectIndex ^ WeakObjectPtr.ObjectSerialNumber);
}
bool operator==(const FWeakObjectPtr& other)
{
return ObjectIndex == other.ObjectIndex && ObjectSerialNumber == other.ObjectSerialNumber;