Skip to content

UOperatingSystemSaveGame

#include <OperatingSystemSimulator/Public/Global/OperatingSystemSaveGame.h>
class UOperatingSystemSaveGame

Defined in OperatingSystemSaveGame.h:18

Inherits: USaveGame

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemSaveGame["UOperatingSystemSaveGame"]
  class USaveGame["USaveGame"]
  USaveGame <|-- UOperatingSystemSaveGame
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemSaveGame["UOperatingSystemSaveGame"]
  class FOperatingSystemDeviceSaveLoad["FOperatingSystemDeviceSaveLoad"]
  UOperatingSystemSaveGame *-- FOperatingSystemDeviceSaveLoad
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemSaveGame {
    +UOperatingSystemSaveGame()
    +GetDeviceDataRef() const const FOperatingSystemDeviceSaveLoad() &
    +SaveGame(AOperatingSystemDeviceActor *SaveDeviceActo bool
    +LoadGame(const AOperatingSystemDeviceActor *TargetDe UOperatingSystemSaveGame() *
    +UserIndex : uint8
    +SaveVersion : float
    +DeviceData : FOperatingSystemDeviceSaveLoad()
  }

Documented call sites inside the plugin (10):

flowchart LR
  UOperatingSystemSaveGame__SaveGame["UOperatingSystemSaveGame::SaveGame"]
  AOperatingSystemPortableDeviceActor__Internal_ChargeBattery["AOperatingSystemPortableDeviceActor::Internal_ChargeBattery"]
  AOperatingSystemPortableDeviceActor__Internal_ChargeBattery --> UOperatingSystemSaveGame__SaveGame
  AOperatingSystemPortableDeviceActor__Internal_ConsumeBattery["AOperatingSystemPortableDeviceActor::Internal_ConsumeBattery"]
  AOperatingSystemPortableDeviceActor__Internal_ConsumeBattery --> UOperatingSystemSaveGame__SaveGame
  UOperatingSystem__Internal_InstallProgram["UOperatingSystem::Internal_InstallProgram"]
  UOperatingSystem__Internal_InstallProgram --> UOperatingSystemSaveGame__SaveGame
  UOperatingSystemBaseDevice__Internal_OnDeviceSessionEnd["UOperatingSystemBaseDevice::Internal_OnDeviceSessionEnd"]
  UOperatingSystemBaseDevice__Internal_OnDeviceSessionEnd --> UOperatingSystemSaveGame__SaveGame
  UOperatingSystemBaseDevice__OnFinishSettingUpOperatingSystemPostInstallation["UOperatingSystemBaseDevice::OnFinishSettingUpOperatingSystemPostInstallation"]
  UOperatingSystemBaseDevice__OnFinishSettingUpOperatingSystemPostInstallation --> UOperatingSystemSaveGame__SaveGame
  UOperatingSystemSettingModule_Wallpaper__SaveBundledWallpaper["UOperatingSystemSettingModule_Wallpaper::SaveBundledWallpaper"]
  UOperatingSystemSettingModule_Wallpaper__SaveBundledWallpaper --> UOperatingSystemSaveGame__SaveGame
  UOperatingSystemSettingModule_Wallpaper__SaveCustomWallpaper["UOperatingSystemSettingModule_Wallpaper::SaveCustomWallpaper"]
  UOperatingSystemSettingModule_Wallpaper__SaveCustomWallpaper --> UOperatingSystemSaveGame__SaveGame
  AOperatingSystemPortableDeviceActor__SetBattery["AOperatingSystemPortableDeviceActor::SetBattery"]
  AOperatingSystemPortableDeviceActor__SetBattery --> UOperatingSystemSaveGame__SaveGame
  AOperatingSystemPortableDeviceActor__StopChargingBattery["AOperatingSystemPortableDeviceActor::StopChargingBattery"]
  AOperatingSystemPortableDeviceActor__StopChargingBattery --> UOperatingSystemSaveGame__SaveGame
  UOperatingSystem__UninstallProgram["UOperatingSystem::UninstallProgram"]
  UOperatingSystem__UninstallProgram --> UOperatingSystemSaveGame__SaveGame

Caller impact — UOperatingSystemSaveGame

Section titled “Caller impact — UOperatingSystemSaveGame”

Documented call sites inside the plugin (2):

flowchart LR
  UOperatingSystemSaveGame__UOperatingSystemSaveGame["UOperatingSystemSaveGame::UOperatingSystemSaveGame"]
  UOperatingSystemSaveGame__LoadGame["UOperatingSystemSaveGame::LoadGame"]
  UOperatingSystemSaveGame__LoadGame --> UOperatingSystemSaveGame__UOperatingSystemSaveGame
  UOperatingSystemSaveGame__SaveGame["UOperatingSystemSaveGame::SaveGame"]
  UOperatingSystemSaveGame__SaveGame --> UOperatingSystemSaveGame__UOperatingSystemSaveGame

This class represents a save game for the operating system simulator. It is derived from the USaveGame base class.

ReturnNameDescription
UOperatingSystemSaveGame
const FOperatingSystemDeviceSaveLoad &GetDeviceDataRef const inlineReturns a reference to the device data.

UOperatingSystemSaveGame()

Defined in OperatingSystemSaveGame.h:36


const inline

inline const FOperatingSystemDeviceSaveLoad & GetDeviceDataRef() const

Defined in OperatingSystemSaveGame.h:70 Returns a reference to the device data.

This method retrieves a constant reference to the device data from the save game.

Constant reference to the device data.

ReturnNameDescription
boolSaveGame staticSaves the game data to the specified save device.
UOperatingSystemSaveGame *LoadGame staticLoads the save game from the specified target device.

static

static bool SaveGame(AOperatingSystemDeviceActor * SaveDeviceActor)

Defined in OperatingSystemSaveGame.h:44 Saves the game data to the specified save device.

  • SaveDeviceActor The save device to save the data to.

True if the game data was successfully saved, false otherwise.


static

static UOperatingSystemSaveGame * LoadGame(const AOperatingSystemDeviceActor * TargetDevice)

Defined in OperatingSystemSaveGame.h:52 Loads the save game from the specified target device.

  • TargetDevice The target device from which to load the save game.

The loaded save game instance. Returns nullptr if the load operation fails.

ReturnNameDescription
uint8UserIndex
floatSaveVersionStatic save version. DO NOT CHANGE if not required. Newer save versions are NOT compatible with previous ones.
FOperatingSystemDeviceSaveLoadDeviceData

uint8 UserIndex

Defined in OperatingSystemSaveGame.h:25


float SaveVersion

Defined in OperatingSystemSaveGame.h:29 Static save version. DO NOT CHANGE if not required. Newer save versions are NOT compatible with previous ones.


FOperatingSystemDeviceSaveLoad DeviceData

Defined in OperatingSystemSaveGame.h:32