Files
UnrealEngineUWP/Engine/Source/Developer/Lumin/LuminTargetPlatform/Private/LuminTargetPlatformModule.cpp
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -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);