You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb trivial #jira UE-136397 #preflight none #ROBOMERGE-AUTHOR: vincent.gauthier #ROBOMERGE-SOURCE: CL 18696797 in //UE5/Release-5.0/... via CL 18696825 via CL 18696864 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472) [CL 18696888 by vincent gauthier in ue5-main branch]
49 lines
866 B
C++
49 lines
866 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);
|
|
|