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