Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Private/Native/NativeJSStructSerializerBackend.h
josh adams 019c12863e - Merging Dev-Kairos/Engine/... to Main/Engine/...
- Brings over the necessary engine changes for embedding UE4 mobile as a dylib/so in native mobile app
- Various changes for facial animation, screen recording, others
- ARKit and ARCore plugins were removed, as deemed "not ready"
#rb many people

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: josh.adams
#ROBOMERGE-SOURCE: CL 5201138 via CL 5203024 via CL 5226277
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 5244512 by josh adams in Dev-VR branch]
2019-02-28 17:06:02 -05:00

37 lines
932 B
C++

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "NativeJSScripting.h"
#include "Backends/JsonStructSerializerBackend.h"
class UObject;
/**
* Implements a writer for UStruct serialization using JavaScript.
*
* Based on FJsonStructSerializerBackend, it adds support for certain object types not representable in pure JSON
*
*/
class FNativeJSStructSerializerBackend
: public FJsonStructSerializerBackend
{
public:
/**
* Creates and initializes a new instance.
*
* @param InScripting An instance of a web browser scripting obnject.
*/
FNativeJSStructSerializerBackend(FNativeJSScriptingRef InScripting, FMemoryWriter& Writer);
public:
virtual void WriteProperty(const FStructSerializerState& State, int32 ArrayIndex = 0) override;
private:
void WriteUObject(const FStructSerializerState& State, UObject* Value);
FNativeJSScriptingRef Scripting;
};