Completed phase 1

This commit is contained in:
koritsa
2026-05-25 14:14:52 +03:00
parent 5d0bc7564c
commit 61c58c5c9f
22 changed files with 255 additions and 55 deletions
@@ -4,6 +4,7 @@
#include "NakedDesire/Items/ItemInstance.h"
#include "ClothingItemInstance.generated.h"
struct FItemSaveRecord;
class UClothingItem;
UCLASS(BlueprintType)
@@ -17,6 +18,11 @@ public:
UClothingItem* GetClothingItem() const { return ClothingItem; }
void Init(UClothingItem* InClothingItem);
void Setup(UClothingItem* InClothingItem, const TArray<UItemInstance*>& InStoredItems, float InCondition, FGuid InInstanceId);
static UClothingItemInstance* CreateFromSave(UObject* Outer, const FItemSaveRecord& ItemSaveRecord);
protected:
UPROPERTY(BlueprintReadOnly, Category = "Clothing Item")
TObjectPtr<UClothingItem> ClothingItem;