Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Public/BlueprintGraphModule.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

32 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
class FBlueprintActionFilter;
struct FBlueprintActionInfo;
class FBlueprintGraphModule : public IModuleInterface
{
public:
DECLARE_DELEGATE_RetVal_TwoParams(bool, FActionMenuRejectionTest, FBlueprintActionFilter const&, FBlueprintActionInfo&);
/**
* Provides access to a list of additional rejection tests that will be
* utilized when constructing Blueprint context/action menus. Helpful to
* game modules, so they can inject their own custom filtering (and hide
* options that may be undesired for their specific project).
*
* These rejection tests will be ran after all the standard filter tests,
* and in the order that they are in this array.
*
* @return An array of additional rejection tests for FBlueprintActionFilter.
*/
BLUEPRINTGRAPH_API TArray<FActionMenuRejectionTest>& GetExtendedActionMenuFilters() { return ExtendedMenuFilters; }
virtual void ShutdownModule() override;
private:
TArray<FActionMenuRejectionTest> ExtendedMenuFilters;
};