Files
UnrealEngineUWP/Engine/Source/Developer/ScreenShotComparisonTools/Private/ScreenShotToolsModule.cpp
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -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);