Files
UnrealEngineUWP/Engine/Source/Developer/DesktopPlatform/Public/DesktopPlatformModule.h
2014-03-14 14:13:41 -04:00

25 lines
608 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "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;
};