2021-04-23 11:01:15 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
2022-07-20 11:56:29 -04:00
|
|
|
#include "HAL/Platform.h"
|
2021-04-23 11:01:15 -04:00
|
|
|
#include "SubobjectDataFactory.h"
|
2022-07-20 11:56:29 -04:00
|
|
|
#include "Templates/SharedPointer.h"
|
|
|
|
|
#include "UObject/NameTypes.h"
|
|
|
|
|
|
|
|
|
|
struct FSubobjectData;
|
2021-04-23 11:01:15 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This subobject data factory will create native and blueprint inherited subobjects
|
|
|
|
|
*/
|
|
|
|
|
class FInheritedSubobjectDataFactory : public ISubobjectDataFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// Begin ISubobjectDataFactory interface
|
|
|
|
|
virtual FName GetID() const { return TEXT("InheritedSubobjectFactory"); }
|
|
|
|
|
virtual TSharedPtr<FSubobjectData> CreateSubobjectData(const FCreateSubobjectParams& Params) override;
|
|
|
|
|
virtual bool ShouldCreateSubobjectData(const FCreateSubobjectParams& Params) const override;
|
|
|
|
|
// End ISubobjectDataFactory
|
|
|
|
|
};
|