mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
21 lines
412 B
C++
21 lines
412 B
C++
#pragma once
|
|
|
|
#include "WeakObjectPtr.h"
|
|
#include "Object.h"
|
|
|
|
template<class T = UObject, class TWeakObjectPtrBase = FWeakObjectPtr>
|
|
struct TWeakObjectPtr;
|
|
|
|
template<class T, class TWeakObjectPtrBase>
|
|
struct TWeakObjectPtr : public TWeakObjectPtrBase
|
|
{
|
|
T* Get()
|
|
{
|
|
return (T*)TWeakObjectPtrBase::Get();
|
|
}
|
|
|
|
bool operator==(const TWeakObjectPtr& other)
|
|
{
|
|
return TWeakObjectPtrBase::operator==(other);
|
|
}
|
|
}; |