Files
UnrealEngineUWP/Engine/Source/Developer/CollisionAnalyzer/Public/CollisionAnalyzerModule.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

36 lines
955 B
C++

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