File size: 654 Bytes
7fd553e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameplayTagContainer.h"
#include "Inventory/LyraInventoryItemDefinition.h"
#include "InventoryFragment_SetStats.generated.h"
class ULyraInventoryItemInstance;
class UObject;
struct FGameplayTag;
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;
};
|