mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
tassetptr impl, harvesting stuff, relevancy?
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "PersistentObjectPtr.h"
|
||||
#include "SoftObjectPath.h"
|
||||
#include "AssetPtr.h"
|
||||
|
||||
#include "reboot.h"
|
||||
|
||||
@@ -20,9 +21,17 @@ public:
|
||||
|
||||
T* Get()
|
||||
{
|
||||
if (SoftObjectPtr.ObjectID.AssetPathName.ComparisonIndex.Value <= 0)
|
||||
return nullptr;
|
||||
if (Engine_Version <= 416)
|
||||
{
|
||||
auto& AssetPtr = *(TAssetPtr<T>*)this;
|
||||
return AssetPtr.Get();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (SoftObjectPtr.ObjectID.AssetPathName.ComparisonIndex.Value <= 0)
|
||||
return nullptr;
|
||||
|
||||
return FindObject<T>(SoftObjectPtr.ObjectID.AssetPathName.ToString());
|
||||
return FindObject<T>(SoftObjectPtr.ObjectID.AssetPathName.ToString());
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user