35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "SmartObjectAnnotation.h"
|
|
#include "SmartObjectSlotLinkAnnotation.generated.h"
|
|
|
|
#define UE_API SMARTOBJECTSMODULE_API
|
|
|
|
/**
|
|
* Annotation to allow to find slots based on a Gameplay Tag.
|
|
* This can be used to reuse same behavior on different slots, allowing to use a tag to identify a related slot.
|
|
*/
|
|
USTRUCT(meta = (DisplayName="Slot Link"))
|
|
struct FSmartObjectSlotLinkAnnotation : public FSmartObjectSlotAnnotation
|
|
{
|
|
GENERATED_BODY()
|
|
virtual ~FSmartObjectSlotLinkAnnotation() override {}
|
|
|
|
#if WITH_EDITOR
|
|
UE_API virtual void DrawVisualization(FSmartObjectVisualizationContext& VisContext) const override;
|
|
UE_API virtual void DrawVisualizationHUD(FSmartObjectVisualizationContext& VisContext) const override;
|
|
#endif
|
|
|
|
/** Tag to identify this slot. */
|
|
UPROPERTY(EditAnywhere, Category="Default")
|
|
FGameplayTag Tag;
|
|
|
|
/** The slot the annotation points at. */
|
|
UPROPERTY(EditAnywhere, Category="Default", meta = (NoBinding))
|
|
FSmartObjectSlotReference LinkedSlot;
|
|
};
|
|
|
|
#undef UE_API
|