You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Also removed some unreferenced functions that adding 'override' revealed PR #1002 -- Thank you, Omar007! [CL 2498415 by Mike Fricker in Main branch]
60 lines
2.0 KiB
C++
60 lines
2.0 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "PhATModule.h"
|
|
#include "ModuleManager.h"
|
|
#include "PhAT.h"
|
|
#include "PhATSharedData.h"
|
|
|
|
const FName PhATAppIdentifier = FName(TEXT("PhATApp"));
|
|
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
FPhATModule
|
|
-----------------------------------------------------------------------------*/
|
|
|
|
class FPhATModule : public IPhATModule
|
|
{
|
|
public:
|
|
/** Constructor, set up console commands and variables **/
|
|
FPhATModule()
|
|
{
|
|
}
|
|
|
|
/** Called right after the module DLL has been loaded and the module object has been created */
|
|
virtual void StartupModule() override
|
|
{
|
|
MenuExtensibilityManager = MakeShareable(new FExtensibilityManager);
|
|
ToolBarExtensibilityManager = MakeShareable(new FExtensibilityManager);
|
|
}
|
|
|
|
/** Called before the module is unloaded, right before the module object is destroyed. */
|
|
virtual void ShutdownModule() override
|
|
{
|
|
MenuExtensibilityManager.Reset();
|
|
ToolBarExtensibilityManager.Reset();
|
|
}
|
|
|
|
virtual TSharedRef<IPhAT> CreatePhAT(const EToolkitMode::Type Mode, const TSharedPtr< IToolkitHost >& InitToolkitHost, UPhysicsAsset* PhysicsAsset) override
|
|
{
|
|
TSharedRef<FPhAT> NewPhAT(new FPhAT());
|
|
NewPhAT->InitPhAT(Mode, InitToolkitHost, PhysicsAsset);
|
|
return NewPhAT;
|
|
}
|
|
|
|
virtual void OpenNewBodyDlg(FPhysAssetCreateParams* NewBodyData, EAppReturnType::Type* NewBodyResponse) override
|
|
{
|
|
FPhATSharedData::OpenNewBodyDlg(NewBodyData, NewBodyResponse);
|
|
}
|
|
|
|
/** Gets the extensibility managers for outside entities to extend static mesh editor's menus and toolbars */
|
|
virtual TSharedPtr<FExtensibilityManager> GetMenuExtensibilityManager() override { return MenuExtensibilityManager; }
|
|
virtual TSharedPtr<FExtensibilityManager> GetToolBarExtensibilityManager() override { return ToolBarExtensibilityManager; }
|
|
|
|
private:
|
|
TSharedPtr<FExtensibilityManager> MenuExtensibilityManager;
|
|
TSharedPtr<FExtensibilityManager> ToolBarExtensibilityManager;
|
|
};
|
|
|
|
IMPLEMENT_MODULE(FPhATModule, PhAT);
|