Files
UnrealEngine/Engine/Source/Editor/AnimGraph/Public/IAnimBlueprintCompilerHandlerCollection.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

37 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IAnimBlueprintCompilerHandler.h"
class FAnimBlueprintCompilerContext;
class IAnimBlueprintCompilerCreationContext;
class UE_DEPRECATED(5.0, "IAnimBlueprintCompilerHandlerCollection is no longer used") IAnimBlueprintCompilerHandlerCollection;
class IAnimBlueprintCompilerHandlerCollection
{
public:
PRAGMA_DISABLE_DEPRECATION_WARNINGS
virtual ~IAnimBlueprintCompilerHandlerCollection() {}
/** Register a named handler */
static void RegisterHandler(FName InName, TFunction<TUniquePtr<IAnimBlueprintCompilerHandler>(IAnimBlueprintCompilerCreationContext&)> InFunction) {}
/** Register a named handler */
static void UnregisterHandler(FName InName) {}
// Get a GetHandler of specified type with the specified name
template<typename THandlerClass>
THandlerClass* GetHandler(FName InName) const
{
return static_cast<THandlerClass*>(GetHandlerByName(InName));
}
protected:
// Get a GetHandler with the specified name
virtual IAnimBlueprintCompilerHandler* GetHandlerByName(FName InName) const = 0;
PRAGMA_ENABLE_DEPRECATION_WARNINGS
};