Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Public/BlueprintGraphModule.h
2015-06-09 17:44:15 -04:00

30 lines
1.0 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleInterface.h"
// Forward declarations
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;
};