26 lines
601 B
C++
26 lines
601 B
C++
// © 2025 Naked People Team. All Rights Reserved.
|
|
|
|
|
|
#include "ClothingItemData.h"
|
|
#include "../SaveGame/ClothingItemSaveData.h"
|
|
|
|
FClothingItemSaveData UClothingItemData::ToSaveData() const
|
|
{
|
|
FClothingItemSaveData SaveData;
|
|
|
|
SaveData.ClothingItem = Info;
|
|
|
|
return SaveData;
|
|
}
|
|
|
|
UClothingItemData* UClothingItemData::CreateFromSaveData(const FClothingItemSaveData& SaveData)
|
|
{
|
|
|
|
UClothingItem* ClothingItem = SaveData.ClothingItem.LoadSynchronous();
|
|
|
|
UClothingItemData* ClothingItemData = NewObject<UClothingItemData>();
|
|
ClothingItemData->Info = ClothingItem;
|
|
|
|
return ClothingItemData;
|
|
}
|