mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
quite a bit of stuff
This commit is contained in:
25
Project Reboot 3.0/SoftObjectPtr.h
Normal file
25
Project Reboot 3.0/SoftObjectPtr.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "Object.h"
|
||||
|
||||
#include "PersistentObjectPtr.h"
|
||||
#include "SoftObjectPath.h"
|
||||
|
||||
#include "reboot.h"
|
||||
|
||||
struct FSoftObjectPtr : public TPersistentObjectPtr<FSoftObjectPath>
|
||||
{
|
||||
public:
|
||||
};
|
||||
|
||||
template<class T = UObject>
|
||||
struct TSoftObjectPtr
|
||||
{
|
||||
public:
|
||||
FSoftObjectPtr SoftObjectPtr;
|
||||
|
||||
T* Get()
|
||||
{
|
||||
return FindObject<T>(SoftObjectPtr.ObjectID.AssetPathName.ToString());
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user