Add ScriptingObjectReference for Read/WriteStream and scripting interop as an array
This commit is contained in:
@@ -5,12 +5,6 @@
|
||||
#include "Stream.h"
|
||||
#include "Engine/Core/Templates.h"
|
||||
|
||||
struct CommonValue;
|
||||
struct Variant;
|
||||
struct VariantType;
|
||||
class ISerializable;
|
||||
class ScriptingObject;
|
||||
|
||||
/// <summary>
|
||||
/// Base class for all data write streams
|
||||
/// </summary>
|
||||
@@ -177,6 +171,12 @@ public:
|
||||
WriteBytes(id, sizeof(id));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
FORCE_INLINE void Write(const ScriptingObjectReference<T>& v)
|
||||
{
|
||||
Write(v.Get());
|
||||
}
|
||||
|
||||
template<typename T, typename AllocationType = HeapAllocation>
|
||||
void Write(const Array<T, AllocationType>& data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user