mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
20 lines
441 B
C++
20 lines
441 B
C++
#pragma once
|
|
|
|
#include "UObjectArray.h"
|
|
|
|
struct FWeakObjectPtr
|
|
{
|
|
public:
|
|
int ObjectIndex;
|
|
int ObjectSerialNumber;
|
|
|
|
UObject* Get()
|
|
{
|
|
return ChunkedObjects ? ChunkedObjects->GetObjectByIndex(ObjectIndex) : UnchunkedObjects ? UnchunkedObjects->GetObjectByIndex(ObjectIndex) : nullptr;
|
|
}
|
|
|
|
bool operator==(const FWeakObjectPtr& other)
|
|
{
|
|
return ObjectIndex == other.ObjectIndex && ObjectSerialNumber == other.ObjectSerialNumber;
|
|
}
|
|
}; |