// © 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 WardrobeClothing; UPROPERTY(BlueprintReadWrite) TArray PlayerClothing; UFUNCTION(BlueprintCallable) static UGlobalSaveGameData* LoadOrCreateSaveGame(UClothingList* DefaultPlayerClothing, UClothingList* DefaultWardrobeClothing); UFUNCTION(BlueprintCallable) static bool SaveGame(TArray CurrentWardrobeClothing, TArray CurrentPlayerClothing, int32 InMoney); private: static UGlobalSaveGameData* CreateNewSaveGame(TArray CurrentWardrobeClothing, TArray CurrentPlayerClothing, float InMoney); };