Files
UnrealEngineUWP/Engine/Source/Programs/InterchangeWorker/Private/InterchangeWorkerImpl.h
Alexis Matte ed3e1719ca Interchange Fbx skeletal mesh support phase 1
#rb richard.talbotwatkin
#jira UEENT-3853

[CL 14870441 by Alexis Matte in ue5-main branch]
2020-12-07 12:03:25 -04:00

40 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/PlatformTime.h"
#include "InterchangeWorker.h"
#include "InterchangeCommands.h"
#include "InterchangeDispatcherNetworking.h"
#include "InterchangeFbxParser.h"
struct FFileStatData;
struct FImportParameters;
class FInterchangeWorkerImpl
{
public:
FInterchangeWorkerImpl(int32 InServerPID, int32 InServerPort, FString& InResultFolder);
bool Run();
private:
void InitiatePing();
void ProcessCommand(const UE::Interchange::FPingCommand& PingCommand);
void ProcessCommand(const UE::Interchange::FBackPingCommand& BackPingCommand);
void ProcessCommand(const UE::Interchange::FRunTaskCommand& TerminateCommand);
UE::Interchange::ETaskState LoadFbxFile(const UE::Interchange::FJsonLoadSourceCmd& LoadSourceCommand, FString& OutJSonResult, TArray<FString>& OutJSonMessages);
UE::Interchange::ETaskState FetchFbxPayload(const UE::Interchange::FJsonFetchPayloadCmd& FetchPayloadCommand, FString& OutJSonResult, TArray<FString>& OutJSonMessages);
private:
UE::Interchange::FNetworkClientNode NetworkInterface;
UE::Interchange::FCommandQueue CommandIO;
int32 ServerPID;
int32 ServerPort;
uint64 PingStartCycle;
FString ResultFolder;
UE::Interchange::FInterchangeFbxParser FbxParser;
};