2019-12-26 15:32:37 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2016-11-23 15:48:37 -05:00
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "Modules/ModuleInterface.h"
|
|
|
|
|
#include "Modules/ModuleManager.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
#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;
|
|
|
|
|
};
|