@@ -149,14 +149,6 @@ public:
|
||||
v.Set(*(Guid*)id);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
FORCE_INLINE void Read(SoftObjectInterfaceReference<T>& v)
|
||||
{
|
||||
uint32 id[4];
|
||||
ReadBytes(id, sizeof(id));
|
||||
v.Set(*(Guid*)id);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
FORCE_INLINE void Read(AssetReference<T>& v)
|
||||
{
|
||||
|
||||
@@ -18,8 +18,6 @@ class ScriptingObjectInterfaceReference;
|
||||
template<typename T>
|
||||
class SoftObjectReference;
|
||||
template<typename T>
|
||||
class SoftObjectInterfaceReference;
|
||||
template<typename T>
|
||||
class AssetReference;
|
||||
template<typename T>
|
||||
class WeakAssetReference;
|
||||
@@ -550,27 +548,6 @@ namespace Serialization
|
||||
v = id;
|
||||
}
|
||||
|
||||
// Soft Object Interface Reference
|
||||
|
||||
template<typename T>
|
||||
inline bool ShouldSerialize(const SoftObjectInterfaceReference<T>& v, const void* otherObj)
|
||||
{
|
||||
return !otherObj || ShouldSerializeRef(v.GetObject(), ((SoftObjectInterfaceReference<T>*)otherObj)->GetObject());
|
||||
}
|
||||
template<typename T>
|
||||
inline void Serialize(ISerializable::SerializeStream& stream, const SoftObjectInterfaceReference<T>& v, const void* otherObj)
|
||||
{
|
||||
stream.Guid(v.GetID());
|
||||
}
|
||||
template<typename T>
|
||||
inline void Deserialize(ISerializable::DeserializeStream& stream, SoftObjectInterfaceReference<T>& v, ISerializeModifier* modifier)
|
||||
{
|
||||
Guid id;
|
||||
Deserialize(stream, id, modifier);
|
||||
modifier->IdsMapping.TryGet(id, id);
|
||||
v = id;
|
||||
}
|
||||
|
||||
// Asset Reference
|
||||
|
||||
template<typename T>
|
||||
|
||||
@@ -21,8 +21,6 @@ class ScriptingObjectInterfaceReference;
|
||||
template<typename T>
|
||||
class SoftObjectReference;
|
||||
template<typename T>
|
||||
class SoftObjectInterfaceReference;
|
||||
template<typename T>
|
||||
class AssetReference;
|
||||
template<typename T>
|
||||
class WeakAssetReference;
|
||||
|
||||
@@ -169,14 +169,6 @@ public:
|
||||
Write(v.Get());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
FORCE_INLINE void Write(const SoftObjectInterfaceReference<T>& v)
|
||||
{
|
||||
uint32 id[4];
|
||||
v.CopyID(id);
|
||||
WriteBytes(id, sizeof(id));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
FORCE_INLINE void Write(const AssetReference<T>& v)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "Engine/Core/Collections/Array.h"
|
||||
#include "Engine/Scripting/ScriptingObject.h"
|
||||
#include "Engine/Scripting/ScriptingObjectInterfaceReference.h"
|
||||
#include "Engine/Scripting/SoftObjectInterfaceReference.h"
|
||||
#include "Engine/Scripting/SerializableScriptingObject.h"
|
||||
#include "Engine/Scripting/SoftTypeReference.h"
|
||||
#include "Engine/Content/SceneReference.h"
|
||||
@@ -179,10 +178,9 @@ public:
|
||||
|
||||
// Test struct
|
||||
API_FIELD() TestStruct SimpleStruct;
|
||||
|
||||
// Test interface reference
|
||||
API_FIELD() ScriptingObjectInterfaceReference<ITestInterface> InterfaceRef;
|
||||
// Test soft interface reference
|
||||
API_FIELD() SoftObjectInterfaceReference<ITestInterface> SoftInterfaceRef;
|
||||
|
||||
// Test event
|
||||
API_EVENT() Delegate<int32, Float3, const String&, String&, TestStruct&, const Array<TestStruct>&, Array<TestStruct>&> SimpleEvent;
|
||||
|
||||
@@ -19,7 +19,6 @@ namespace Flax.Build.Bindings
|
||||
"PersistentScriptingObject",
|
||||
"ScriptingObjectReference",
|
||||
"ScriptingObjectInterfaceReference",
|
||||
"SoftObjectInterfaceReference",
|
||||
"AssetReference",
|
||||
"BinaryAsset",
|
||||
"SceneObject",
|
||||
|
||||
Reference in New Issue
Block a user