42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// © 2025 Naked People Team. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "ClothingItemSaveData.h"
|
|
#include "GameFramework/SaveGame.h"
|
|
#include "GlobalSaveGameData.generated.h"
|
|
|
|
class UClothingList;
|
|
class UClothingItemData;
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class NAKEDDESIRE_API UGlobalSaveGameData : public USaveGame
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UPROPERTY(BlueprintReadWrite, SaveGame)
|
|
bool HaveSeenTutorial = false;
|
|
|
|
UPROPERTY(BlueprintReadWrite, SaveGame)
|
|
float Money = 0;
|
|
|
|
UPROPERTY(BlueprintReadWrite)
|
|
TArray<FClothingItemSaveData> WardrobeClothing;
|
|
|
|
UPROPERTY(BlueprintReadWrite)
|
|
TArray<FClothingItemSaveData> PlayerClothing;
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
static UGlobalSaveGameData* LoadOrCreateSaveGame(UClothingList* DefaultPlayerClothing, UClothingList* DefaultWardrobeClothing);
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
static bool SaveGame(TArray<UClothingItemData*> CurrentWardrobeClothing, TArray<UClothingItemData*> CurrentPlayerClothing, int32 InMoney);
|
|
|
|
private:
|
|
static UGlobalSaveGameData* CreateNewSaveGame(TArray<UClothingItemData*> CurrentWardrobeClothing, TArray<UClothingItemData*> CurrentPlayerClothing, float InMoney);
|
|
};
|