Files
UnrealEngineUWP/Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserDataLegacyBridge.h
bryan sefcik 98b51354ed Ran IWYU on Public headers under Engine/Source/Editor/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065253 by bryan.sefcik
#jira
#preflight 62d5b3e91062f2e63014598e

#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21152630 via CL 21156388 via CL 21157044
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21181817 by bryan sefcik in ue5-main branch]
2022-07-20 11:56:29 -04:00

43 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Array.h"
#include "ContentBrowserDataMenuContexts.h"
#include "ContentBrowserItemData.h"
#include "CoreMinimal.h"
#include "Delegates/Delegate.h"
#include "UObject/ObjectMacros.h"
#include "ContentBrowserDataLegacyBridge.generated.h"
class FName;
class UClass;
class UFactory;
struct FARFilter;
struct FAssetData;
/** Called to add extra asset data to the asset view, to display virtual assets. These get treated similar to Class assets */
DECLARE_DELEGATE_TwoParams(FOnGetCustomSourceAssets, const FARFilter& /*SourceFilter*/, TArray<FAssetData>& /*AddedAssets*/);
/** Called to begin user controlled asset creation via the asset data source (if available) */
DECLARE_DELEGATE_FiveParams(FOnCreateNewAsset, const FName /*DefaultAssetName*/, const FName /*PackagePath*/, UClass* /*AssetClass*/, UFactory* /*Factory*/, UContentBrowserDataMenuContext_AddNewMenu::FOnBeginItemCreation /*OnBeginItemCreation*/);
/** Filter data used to provide legacy information to the asset data source */
USTRUCT()
struct CONTENTBROWSERDATA_API FContentBrowserDataLegacyFilter
{
GENERATED_BODY()
public:
FOnGetCustomSourceAssets OnGetCustomSourceAssets;
};
namespace ContentBrowserDataLegacyBridge
{
/** Called to begin user controlled asset creation via the asset data source (if available) */
CONTENTBROWSERDATA_API FOnCreateNewAsset& OnCreateNewAsset();
}