You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#ROBOMERGE-AUTHOR: yoan.stamant #ROBOMERGE-COMMAND: FnMain #ROBOMERGE-SOURCE: CL 18035146 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v885-17909292) #ROBOMERGE[STARSHIP]: UE5-Release-Engine-Staging Release-5.0 #ROBOMERGE[bot1]: Main [CL 18035186 by yoan stamant in ue5-release-engine-test branch]
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SmartObjectsModule.h"
|
|
|
|
#include "Modules/ModuleManager.h"
|
|
#include "SmartObjectTypes.h"
|
|
|
|
#if WITH_GAMEPLAY_DEBUGGER && WITH_SMARTOBJECT_DEBUG
|
|
#include "GameplayDebugger.h"
|
|
#include "GameplayDebuggerCategory_SmartObject.h"
|
|
#endif
|
|
|
|
#define LOCTEXT_NAMESPACE "SmartObjects"
|
|
|
|
class FSmartObjectsModule : public ISmartObjectsModule
|
|
{
|
|
virtual void StartupModule() override;
|
|
virtual void ShutdownModule() override;
|
|
};
|
|
|
|
IMPLEMENT_MODULE(FSmartObjectsModule, SmartObjectsModule)
|
|
|
|
void FSmartObjectsModule::StartupModule()
|
|
{
|
|
#if WITH_GAMEPLAY_DEBUGGER && WITH_SMARTOBJECT_DEBUG
|
|
IGameplayDebugger& GameplayDebuggerModule = IGameplayDebugger::Get();
|
|
GameplayDebuggerModule.RegisterCategory("SmartObject",
|
|
IGameplayDebugger::FOnGetCategory::CreateStatic(&FGameplayDebuggerCategory_SmartObject::MakeInstance),
|
|
EGameplayDebuggerCategoryState::EnabledInGameAndSimulate);
|
|
GameplayDebuggerModule.NotifyCategoriesChanged();
|
|
#endif
|
|
}
|
|
|
|
void FSmartObjectsModule::ShutdownModule()
|
|
{
|
|
#if WITH_GAMEPLAY_DEBUGGER && WITH_SMARTOBJECT_DEBUG
|
|
if (IGameplayDebugger::IsAvailable())
|
|
{
|
|
IGameplayDebugger& GameplayDebuggerModule = IGameplayDebugger::Get();
|
|
GameplayDebuggerModule.UnregisterCategory("SmartObject");
|
|
GameplayDebuggerModule.NotifyCategoriesChanged();
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|