Files
UnrealEngineUWP/Engine/Source/Developer/IOS/IOSTargetPlatform/Private/IOSTargetPlatformModule.cpp
Marc Audy 7a0f229e8d Copying //UE4/Fortnite-Staging to //UE4/Dev-Main (Source: //Fortnite/Main/Engine @ 3876564)
#lockdown Nick.Penwarden
#rnx
#rb none

[CL 3903710 by Marc Audy in Main branch]
2018-02-22 11:25:06 -05:00

51 lines
1.0 KiB
C++

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "IOSTargetPlatform.h"
#include "Interfaces/ITargetPlatformModule.h"
#include "Modules/ModuleManager.h"
/**
* Module for iOS as a target platform
*/
class FIOSTargetPlatformModule : public ITargetPlatformModule
{
public:
/** Destructor. */
~FIOSTargetPlatformModule()
{
for (ITargetPlatform* TP : TargetPlatforms)
{
delete TP;
}
TargetPlatforms.Empty();
}
//~ ITargetPlatformModule interface
virtual TArray<ITargetPlatform*> GetTargetPlatforms() override
{
if (TargetPlatforms.Num() == 0)
{
TargetPlatforms.Add(new FIOSTargetPlatform(false, true));
TargetPlatforms.Add(new FIOSTargetPlatform(false, false));
}
return TargetPlatforms;
}
//~ IModuleInterface interface
virtual void StartupModule() override { }
virtual void ShutdownModule() override { }
protected:
/** Holds the target platforms. */
TArray<ITargetPlatform*> TargetPlatforms;
};
IMPLEMENT_MODULE(FIOSTargetPlatformModule, IOSTargetPlatform);