Files
UnrealEngineUWP/Engine/Source/Developer/DesktopPlatform/Public/DesktopPlatformModule.h
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

27 lines
678 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
#include "IDesktopPlatform.h"
class FDesktopPlatformModule : public IModuleInterface
{
public:
virtual void StartupModule();
virtual void ShutdownModule();
static IDesktopPlatform* Get()
{
FDesktopPlatformModule& DesktopPlatformModule = FModuleManager::Get().LoadModuleChecked<FDesktopPlatformModule>("DesktopPlatform");
return DesktopPlatformModule.GetSingleton();
}
private:
virtual IDesktopPlatform* GetSingleton() const { return DesktopPlatform; }
IDesktopPlatform* DesktopPlatform;
};