Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/Private/LiveCodingServer.h
Tim Smith 7c44abf17f Improved notifications in the editor/game for live coding.
Added message that packaging can fail if assets reference new changes.

#rb
#rnx
#jira UE-115558
#preflight 60c39c8e8d00b80001b1e85f

[CL 16645001 by Tim Smith in ue5-main branch]
2021-06-11 14:48:25 -04:00

53 lines
1.8 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "ILiveCodingServer.h"
#include "LC_RunMode.h"
#include <string>
class ServerCommandThread;
class FLiveCodingServer final : public ILiveCodingServer
{
public:
FLiveCodingServer();
virtual ~FLiveCodingServer();
virtual void Start(const wchar_t* ProcessGroupName) override;
virtual void Stop() override;
virtual void RestartTargets() override;
virtual void SetLinkerPath(const wchar_t* LinkerPath, const TMap<FString, FString>& LinkerEnvironment) override;
// ILiveCodingServer implementation
virtual FBringToFrontDelegate& GetBringToFrontDelegate() override final;
virtual FClearOutputDelegate& GetClearOutputDelegate() override final;
virtual FStatusChangeDelegate& GetStatusChangeDelegate() override final;
virtual FLogOutputDelegate& GetLogOutputDelegate() override final;
virtual FCompileDelegate& GetCompileDelegate() override final;
virtual FCompileStartedDelegate& GetCompileStartedDelegate() override final;
virtual FCompileFinishedDelegate& GetCompileFinishedDelegate() override final;
virtual FShowConsoleDelegate& GetShowConsoleDelegate() override final;
virtual FSetVisibleDelegate& GetSetVisibleDelegate() override final;
virtual bool HasReinstancingProcess() override final;
virtual bool ShowCompileFinishNotification() override final;
private:
std::wstring ProcessGroupName;
ServerCommandThread* CommandThread;
FBringToFrontDelegate BringToFrontDelegate;
FClearOutputDelegate ClearOutputDelegate;
FStatusChangeDelegate StatusChangeDelegate;
FLogOutputDelegate LogOutputDelegate;
FCompileDelegate CompileDelegate;
FCompileStartedDelegate CompileStartedDelegate;
FCompileFinishedDelegate CompileFinishedDelegate;
FShowConsoleDelegate ShowConsoleDelegate;
FSetVisibleDelegate SetVisibleDelegate;
};
extern FLiveCodingServer *GLiveCodingServer;