UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IOSSaveGameSystem.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "SaveGameSystem.h"
6
8{
9public:
11 virtual ~FIOSSaveGameSystem();
12
13 // ISaveGameSystem interface
14 virtual bool PlatformHasNativeUI() override
15 {
16 return false;
17 }
18
19 virtual bool DoesSaveSystemSupportMultipleUsers() override
20 {
21 return false;
22 }
23
24 virtual bool GetSaveGameNames(TArray<FString>& FoundSaves, const int32 UserIndex) override;
25
26 virtual bool DoesSaveGameExist(const TCHAR* Name, const int32 UserIndex) override
27 {
29 }
30
31 virtual ESaveExistsResult DoesSaveGameExistWithResult(const TCHAR* Name, const int32 UserIndex) override;
32
33 virtual bool SaveGame(bool bAttemptToUseUI, const TCHAR* Name, const int32 UserIndex, const TArray<uint8>& Data) override;
39
40 virtual bool LoadGame(bool bAttemptToUseUI, const TCHAR* Name, const int32 UserIndex, TArray<uint8>& Data) override;
46
47 virtual bool DeleteGame(bool bAttemptToUseUI, const TCHAR* Name, const int32 UserIndex) override;
53
54private:
58 void Initialize();
59
63 void Shutdown();
64
68 virtual FString GetSaveGamePath(const TCHAR* Name);
69};
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition IOSSaveGameSystem.h:8
FUpdateCloudDataFromLocalSave OnUpdateCloudDataFromLocalSave
Definition IOSSaveGameSystem.h:38
virtual bool GetSaveGameNames(TArray< FString > &FoundSaves, const int32 UserIndex) override
Definition IOSSaveGameSystem.cpp:30
FIOSSaveGameSystem()
Definition IOSSaveGameSystem.cpp:12
virtual ~FIOSSaveGameSystem()
Definition IOSSaveGameSystem.cpp:17
DECLARE_DELEGATE_RetVal_OneParam(bool, FUpdateLocalSaveFileFromCloud, const FString &)
virtual bool DoesSaveSystemSupportMultipleUsers() override
Definition IOSSaveGameSystem.h:19
virtual bool SaveGame(bool bAttemptToUseUI, const TCHAR *Name, const int32 UserIndex, const TArray< uint8 > &Data) override
Definition IOSSaveGameSystem.cpp:53
FDeleteCloudData OnDeleteCloudData
Definition IOSSaveGameSystem.h:52
virtual bool PlatformHasNativeUI() override
Definition IOSSaveGameSystem.h:14
DECLARE_DELEGATE_OneParam(FDeleteCloudData, const FString &)
virtual bool LoadGame(bool bAttemptToUseUI, const TCHAR *Name, const int32 UserIndex, TArray< uint8 > &Data) override
Definition IOSSaveGameSystem.cpp:65
FUpdateLocalSaveFileFromCloud OnUpdateLocalSaveFileFromCloud
Definition IOSSaveGameSystem.h:45
DECLARE_DELEGATE_RetVal_OneParam(bool, FUpdateCloudDataFromLocalSave, const FString &)
virtual bool DoesSaveGameExist(const TCHAR *Name, const int32 UserIndex) override
Definition IOSSaveGameSystem.h:26
virtual ESaveExistsResult DoesSaveGameExistWithResult(const TCHAR *Name, const int32 UserIndex) override
Definition IOSSaveGameSystem.cpp:44
virtual bool DeleteGame(bool bAttemptToUseUI, const TCHAR *Name, const int32 UserIndex) override
Definition IOSSaveGameSystem.cpp:77
Definition SaveGameSystem.h:20
ESaveExistsResult
Definition SaveGameSystem.h:26
Definition Array.h:670