FGenericSaveGameSystem

A generic save game system that just uses [IFileManager](API\Runtime\Core\HAL\IFileManager) to save/load with normal files

Windows
MacOS
Linux

Inheritance Hierarchy

ISaveGameSystem

FGenericSaveGameSystem

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SaveGameSystem.h

Include

#include "SaveGameSystem.h"

Syntax

class FGenericSaveGameSystem : public ISaveGameSystem

Remarks

A generic save game system that just uses IFileManager to save/load with normal files

Functions

Name Description

Protected function Virtual

FString

 

GetSaveGamePath

(
    const TCHAR* Name
)

Get the path to save game file for the given name, a platform may be able to simply override this and no other functions above

Overridden from ISaveGameSystem

Name Description

Public function Virtual

bool

 

DeleteGame

(
    bool bAttemptToUseUI,
    const TCHAR* Name,
    const int32 UserIndex
)

Delete an existing save game, blocking until complete

Public function Virtual

bool

 

DoesSaveGameExist

(
    const TCHAR* Name,
    const int32 UserIndex
)

Return true if the named savegame exists (probably not useful with NativeUI

Public function Virtual

ESaveExistsR...

 

DoesSaveGameExistWithResult

(
    const TCHAR* Name,
    const int32 UserIndex
)

Similar to DoesSaveGameExist, except returns a result code with more information.

Public function Virtual

bool

 

LoadGame

(
    bool bAttemptToUseUI,
    const TCHAR* Name,
    const int32 UserIndex,
    TArray< uint8 >& Data
)

Loads the game, blocking until complete

Public function Virtual

bool

 

PlatformHasNativeUI()

Returns true if the platform has a native UI (like many consoles)

Public function Virtual

bool

 

SaveGame

(
    bool bAttemptToUseUI,
    const TCHAR* Name,
    const int32 UserIndex,
    const TArray< uint8 >& Data
)

Saves the game, blocking until complete.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss