RealtimeStyleTransferRuntime/Source/LyraGame/Inventory/InventoryFragment_SetStats.h

25 lines
605 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Inventory/LyraInventoryItemDefinition.h"
#include "GameplayTagContainer.h"
#include "InventoryFragment_SetStats.generated.h"
UCLASS()
class UInventoryFragment_SetStats : public ULyraInventoryItemFragment
{
GENERATED_BODY()
protected:
UPROPERTY(EditDefaultsOnly, Category=Equipment)
TMap<FGameplayTag, int32> InitialItemStats;
public:
virtual void OnInstanceCreated(ULyraInventoryItemInstance* Instance) const override;
int32 GetItemStatByTag(FGameplayTag Tag) const;
};