Files
UnrealEngineUWP/Engine/Source/Developer/Lumin/LuminTargetPlatform/Private/LuminTargetPlatformModule.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

64 lines
1.2 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"
#include "Interfaces/ITargetPlatformModule.h"
#include "Common/TargetPlatformBase.h"
#include "LuminTargetPlatform.h"
/**
* Module for the Android target platform.
*/
class FLuminTargetPlatformModule : public ITargetPlatformModule
{
public:
/**
* Destructor.
*/
virtual ~FLuminTargetPlatformModule( )
{
for (ITargetPlatform* TP : TargetPlatforms)
{
delete TP;
}
TargetPlatforms.Empty();
}
public:
// Begin ITargetPlatformModule interface
virtual TArray<ITargetPlatform*> GetTargetPlatforms() override
{
if (TargetPlatforms.Num() == 0)
{
TargetPlatforms.Add(new FLuminTargetPlatform(false));
TargetPlatforms.Add(new FLuminTargetPlatform(true));
}
return TargetPlatforms;
}
// End ITargetPlatformModule interface
public:
// Begin IModuleInterface interface
virtual void StartupModule() override
{
}
virtual void ShutdownModule() override
{
}
// End IModuleInterface interface
private:
/** Holds the target platforms. */
TArray<ITargetPlatform*> TargetPlatforms;
};
IMPLEMENT_MODULE( FLuminTargetPlatformModule, LuminTargetPlatform);