Files
UnrealEngineUWP/Engine/Source/Developer/ScreenShotComparisonTools/Private/ScreenShotToolsModule.cpp
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

60 lines
1.3 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
ScreenShotToolsModule.cpp: Implements the FScreenShotToolsModule class.
=============================================================================*/
#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"
#include "Interfaces/IScreenShotToolsModule.h"
#include "ScreenShotManager.h"
/**
* Implements the ScreenshotTools module.
*/
class FScreenShotToolsModule
: public IScreenShotToolsModule
{
public:
// Begin IScreenShotToolsModule interface
virtual IScreenShotManagerPtr GetScreenShotManager() override
{
return ScreenShotManager;
}
// End IScreenShotToolsModule interface
public:
/**
* Shutdown the screen shot manager tools module
*/
virtual void ShutdownModule( ) override
{
ScreenShotManager.Reset();
}
/**
* Startup the screen shot manager tools module
*/
void StartupModule() override
{
// Create the screen shot manager
if (!ScreenShotManager.IsValid())
{
ScreenShotManager = MakeShareable(new FScreenShotManager());
}
}
private:
// Holds the screen shot manager.
IScreenShotManagerPtr ScreenShotManager;
};
IMPLEMENT_MODULE(FScreenShotToolsModule, ScreenShotComparisonTools);