25 lines
680 B
C++
25 lines
680 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "LyraWidgetFactory.h"
|
|
|
|
#include "LyraWidgetFactory_Class.generated.h"
|
|
|
|
UCLASS()
|
|
class LYRAGAME_API ULyraWidgetFactory_Class : public ULyraWidgetFactory
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
ULyraWidgetFactory_Class() { }
|
|
|
|
virtual TSubclassOf<UUserWidget> FindWidgetClassForData_Implementation(const UObject* Data) const override;
|
|
|
|
protected:
|
|
UPROPERTY(EditAnywhere, Category = ListEntries, meta = (AllowAbstract))
|
|
TMap<TSoftClassPtr<UObject>, TSubclassOf<UUserWidget>> EntryWidgetForClass;
|
|
}; |