You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
31 lines
983 B
C
31 lines
983 B
C
|
|
// 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.
|
|||
|
|
*/
|
|||
|
|
USTRUCT()
|
|||
|
|
struct SMARTOBJECTSMODULE_API FSmartObjectSlotLinkAnnotation : public FSmartObjectSlotAnnotation
|
|||
|
|
{
|
|||
|
|
GENERATED_BODY()
|
|||
|
|
virtual ~FSmartObjectSlotLinkAnnotation() override {}
|
|||
|
|
|
|||
|
|
#if UE_ENABLE_DEBUG_DRAWING
|
|||
|
|
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;
|
|||
|
|
};
|