Files
UnrealEngine/Engine/Source/Developer/UndoHistory/Public/IUndoHistoryModule.h
2025-05-18 13:04:45 +08: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( ) { }
};