2021-04-23 11:01:15 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-07-20 11:56:29 -04:00
|
|
|
#include "Components/ChildActorComponent.h"
|
2021-04-23 11:01:15 -04:00
|
|
|
#include "InheritedSubobjectData.h"
|
2022-07-20 11:56:29 -04:00
|
|
|
#include "Internationalization/Text.h"
|
|
|
|
|
|
|
|
|
|
class UObject;
|
|
|
|
|
struct FSubobjectDataHandle;
|
2021-04-23 11:01:15 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Container that represents the subobejct data of a child actor component.
|
|
|
|
|
*/
|
|
|
|
|
struct SUBOBJECTDATAINTERFACE_API FChildActorSubobjectData final : public FInheritedSubobjectData
|
|
|
|
|
{
|
|
|
|
|
explicit FChildActorSubobjectData(UObject* ContextObject, const FSubobjectDataHandle& ParentHandle, const bool InbIsInheritedSCS);
|
|
|
|
|
|
|
|
|
|
// FSubobjectData interface
|
|
|
|
|
virtual FText GetDisplayName() const override;
|
|
|
|
|
virtual FText GetActorDisplayText() const override;
|
|
|
|
|
virtual bool IsChildActor() const override;
|
|
|
|
|
// End FSubobjectData
|
|
|
|
|
|
|
|
|
|
inline const UChildActorComponent* GetChildActorComponent(bool bEvenIfPendingKill = false) const
|
|
|
|
|
{
|
|
|
|
|
return GetObject<UChildActorComponent>(bEvenIfPendingKill);
|
|
|
|
|
}
|
|
|
|
|
};
|