2022-11-01 15:11:25 -04:00
|
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "SmartObjectAnnotation.h"
|
|
|
|
|
|
#include "SmartObjectSlotLinkAnnotation.generated.h"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 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.
|
|
|
|
|
|
*/
|
2023-03-21 07:37:13 -04:00
|
|
|
|
USTRUCT(meta = (DisplayName="Slot Link"))
|
2022-11-01 15:11:25 -04:00
|
|
|
|
struct SMARTOBJECTSMODULE_API FSmartObjectSlotLinkAnnotation : public FSmartObjectSlotAnnotation
|
|
|
|
|
|
{
|
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
virtual ~FSmartObjectSlotLinkAnnotation() override {}
|
|
|
|
|
|
|
2023-03-02 05:58:30 -05:00
|
|
|
|
#if WITH_EDITOR
|
2022-11-01 15:11:25 -04:00
|
|
|
|
virtual void DrawVisualization(FSmartObjectVisualizationContext& VisContext) const override;
|
|
|
|
|
|
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")
|
|
|
|
|
|
FSmartObjectSlotReference LinkedSlot;
|
|
|
|
|
|
};
|