RealtimeStyleTransferRuntime/Source/LyraGame/Inventory/InventoryFragment_SetStats.h

31 lines
747 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Map.h"
#include "GameplayTagContainer.h"
#include "HAL/Platform.h"
#include "Inventory/LyraInventoryItemDefinition.h"
#include "UObject/UObjectGlobals.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;
};