You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
64 lines
1.2 KiB
C++
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);
|