Files
UnrealEngineUWP/Engine/Source/Developer/UndoHistory/Public/IUndoHistoryModule.h
Dominik Peacock 37305aef15 Make dependencyy from UndoHistory to UnrealEd optional
#jira UE-143320
#rb Matt.Johnson
#rb Lauren.Barnes
#preflight 621642ffbd3bdd9086d72271

[CL 19090889 by Dominik Peacock in ue5-main branch]
2022-02-23 09:45:34 -05:00

35 lines
654 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
/**
* Interface for the UndoHistory module.
*/
class IUndoHistoryModule
: public IModuleInterface
{
public:
/**
* Gets a reference to the UndoHistory module instance.
*
* @todo gmp: better implementation using dependency injection.
* @return A reference to the module.
*/
static IUndoHistoryModule& Get( )
{
return FModuleManager::LoadModuleChecked<IUndoHistoryModule>("UndoHistory");
}
public:
/**
* Virtual destructor.
*/
virtual ~IUndoHistoryModule( ) { }
};