Files
UnrealEngine/Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Public/MassSmartObjectUserTrait.h
2025-05-18 13:04:45 +08:00

28 lines
743 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MassEntityTraitBase.h"
#include "GameplayTagContainer.h"
#include "MassSmartObjectUserTrait.generated.h"
#define UE_API MASSSMARTOBJECTS_API
/**
* Trait to allow an entity to interact with SmartObjects
*/
UCLASS(MinimalAPI, meta = (DisplayName = "SmartObject User"))
class UMassSmartObjectUserTrait : public UMassEntityTraitBase
{
GENERATED_BODY()
protected:
UE_API virtual void BuildTemplate(FMassEntityTemplateBuildContext& BuildContext, const UWorld& World) const override;
/** Tags describing the SmartObject user. Used when searching smart objects. */
UPROPERTY(EditAnywhere, Category = Parameter)
FGameplayTagContainer UserTags;
};
#undef UE_API