You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
|
|
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#if PLATFORM_HTML5_BROWSER
|
||
|
|
|
||
|
|
#include "SaveGameSystem.h"
|
||
|
|
|
||
|
|
class FHTML5SaveGameSystem : public ISaveGameSystem
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
FHTML5SaveGameSystem();
|
||
|
|
virtual ~FHTML5SaveGameSystem();
|
||
|
|
|
||
|
|
// ISaveGameSystem interface
|
||
|
|
virtual bool PlatformHasNativeUI() override
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
virtual bool DoesSaveGameExist(const TCHAR* Name, const int32 UserIndex) override;
|
||
|
|
|
||
|
|
virtual bool SaveGame(bool bAttemptToUseUI, const TCHAR* Name, const int32 UserIndex, const TArray<uint8>& Data) override;
|
||
|
|
|
||
|
|
virtual bool LoadGame(bool bAttemptToUseUI, const TCHAR* Name, const int32 UserIndex, TArray<uint8>& Data) override;
|
||
|
|
|
||
|
|
virtual bool DeleteGame(bool bAttemptToUseUI, const TCHAR* Name, const int32 UserIndex) override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
/**
|
||
|
|
* Initializes the SaveData library then loads and initializes the SaveDialog library
|
||
|
|
*/
|
||
|
|
void Initialize();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Terminates and unloads the SaveDialog library then terminates the SaveData library
|
||
|
|
*/
|
||
|
|
void Shutdown();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the path to save game file for the given name
|
||
|
|
*/
|
||
|
|
const char* GetSaveGamePath(const TCHAR* Name, const int32 UserIndex);
|
||
|
|
};
|
||
|
|
#endif
|