You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-118572 #rb Josh.Adams, Nuno.Leiria #rnx #ROBOMERGE-SOURCE: CL 16754815 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529) [CL 16754816 by david harvey in ue5-release-engine-test branch]
50 lines
891 B
C++
50 lines
891 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "ITurnkeyIOModule.h"
|
|
#include "TurnkeyEditorIOServer.h"
|
|
|
|
class FTurnkeyIOModule : public ITurnkeyIOModule
|
|
{
|
|
public:
|
|
virtual void StartupModule() override
|
|
{
|
|
#if WITH_TURNKEY_EDITOR_IO_SERVER
|
|
TurnkeyEditorIOServer = MakeShared<FTurnkeyEditorIOServer>();
|
|
#endif
|
|
}
|
|
|
|
virtual void ShutdownModule() override
|
|
{
|
|
#if WITH_TURNKEY_EDITOR_IO_SERVER
|
|
TurnkeyEditorIOServer.Reset();
|
|
#endif
|
|
}
|
|
|
|
|
|
virtual FString GetUATParams() const override
|
|
{
|
|
FString Result = TEXT("-EditorIO ");
|
|
|
|
#if WITH_TURNKEY_EDITOR_IO_SERVER
|
|
if (TurnkeyEditorIOServer.IsValid())
|
|
{
|
|
Result += TurnkeyEditorIOServer->GetUATParams();
|
|
}
|
|
#endif
|
|
|
|
return Result;
|
|
}
|
|
|
|
private:
|
|
|
|
#if WITH_TURNKEY_EDITOR_IO_SERVER
|
|
TSharedPtr<FTurnkeyEditorIOServer> TurnkeyEditorIOServer;
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
IMPLEMENT_MODULE(FTurnkeyIOModule, TurnkeyIO);
|
|
|
|
#undef LOCTEXT_NAMESPACE
|