RealtimeStyleTransferRuntime/Source/LyraGame/Inventory/InventoryFragment_SetStats.h

31 lines
747 B
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
2022-09-13 07:18:28 +00:00
#include "Containers/Map.h"
2022-05-23 18:41:30 +00:00
#include "GameplayTagContainer.h"
2022-09-13 07:18:28 +00:00
#include "HAL/Platform.h"
#include "Inventory/LyraInventoryItemDefinition.h"
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "InventoryFragment_SetStats.generated.h"
2022-09-13 07:18:28 +00:00
class ULyraInventoryItemInstance;
class UObject;
struct FGameplayTag;
2022-05-23 18:41:30 +00:00
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;
};