You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
36 lines
701 B
C++
36 lines
701 B
C++
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "WindowsServerTargetPlatformPrivatePCH.h"
|
|
|
|
|
|
/** Holds the target platform singleton. */
|
|
static ITargetPlatform* Singleton = nullptr;
|
|
|
|
|
|
/**
|
|
* Module for the Windows target platform as a server.
|
|
*/
|
|
class FWindowsServerTargetPlatformModule
|
|
: public ITargetPlatformModule
|
|
{
|
|
public:
|
|
|
|
virtual ~FWindowsServerTargetPlatformModule( )
|
|
{
|
|
Singleton = nullptr;
|
|
}
|
|
|
|
virtual ITargetPlatform* GetTargetPlatform( )
|
|
{
|
|
if (Singleton == nullptr)
|
|
{
|
|
Singleton = new TGenericWindowsTargetPlatform<false, true, false>();
|
|
}
|
|
|
|
return Singleton;
|
|
}
|
|
};
|
|
|
|
|
|
IMPLEMENT_MODULE(FWindowsServerTargetPlatformModule, WindowsServerTargetPlatform);
|