Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Public/BlueprintGraphModule.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

31 lines
1.1 KiB
C++

// Copyright 1998-2017 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; }
private:
TArray<FActionMenuRejectionTest> ExtendedMenuFilters;
};