init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// © 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;
|
||||
}
|
||||
Reference in New Issue
Block a user