Files
UnrealEngineUWP/Engine/Source/Developer/CollisionAnalyzer/Public/CollisionAnalyzerModule.h
ryan durand 471d972e62 Updating copyright for Engine Developer.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870584 by ryan durand in Main branch]
2019-12-26 15:32:37 -05:00

39 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
class FSpawnTabArgs;
class ICollisionAnalyzer;
class FCollisionAnalyzerModule : public IModuleInterface
{
public:
// Begin IModuleInterface
virtual void StartupModule() override;
virtual void ShutdownModule() override;
// End IModuleInterface
/** Gets the debugger singleton or returns NULL */
static ICollisionAnalyzer* Get()
{
static FName CollisionAnalyzerModuleName("CollisionAnalyzer");
FCollisionAnalyzerModule& DebuggerModule = FModuleManager::Get().LoadModuleChecked<FCollisionAnalyzerModule>(CollisionAnalyzerModuleName);
return DebuggerModule.GetSingleton();
}
private:
virtual ICollisionAnalyzer* GetSingleton() const
{
return CollisionAnalyzer;
}
/** Spawns the Collision Analyzer tab in an SDockTab */
TSharedRef<class SDockTab> SpawnCollisionAnalyzerTab(const FSpawnTabArgs& Args);
ICollisionAnalyzer* CollisionAnalyzer;
};