Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
UOperatingSystemSaveGame Class Reference

#include "OperatingSystemSaveGame.h"

Inheritance diagram for UOperatingSystemSaveGame:
[legend]
Collaboration diagram for UOperatingSystemSaveGame:
[legend]

Public Member Functions

 UOperatingSystemSaveGame ()
 
const FOperatingSystemDeviceSaveLoadGetDeviceDataRef () const
 

Static Public Member Functions

static bool SaveGame (AOperatingSystemDeviceActor *SaveDeviceActor)
 
static UOperatingSystemSaveGameLoadGame (const AOperatingSystemDeviceActor *TargetDevice)
 

Protected Attributes

uint8 UserIndex
 
float SaveVersion
 
FOperatingSystemDeviceSaveLoad DeviceData
 

Detailed Description

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

Constructor & Destructor Documentation

◆ UOperatingSystemSaveGame()

UOperatingSystemSaveGame::UOperatingSystemSaveGame ( )

Member Function Documentation

◆ GetDeviceDataRef()

const FOperatingSystemDeviceSaveLoad & UOperatingSystemSaveGame::GetDeviceDataRef ( ) const
inline

Returns a reference to the device data.

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

Returns
Constant reference to the device data.

◆ LoadGame()

UOperatingSystemSaveGame * UOperatingSystemSaveGame::LoadGame ( const AOperatingSystemDeviceActor * TargetDevice)
static

Loads the save game from the specified target device.

Parameters
TargetDeviceThe target device from which to load the save game.
Returns
The loaded save game instance. Returns nullptr if the load operation fails.

◆ SaveGame()

bool UOperatingSystemSaveGame::SaveGame ( AOperatingSystemDeviceActor * SaveDeviceActor)
static

Saves the game data to the specified save device.

Parameters
SaveDeviceActorThe save device to save the data to.
Returns
True if the game data was successfully saved, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ DeviceData

FOperatingSystemDeviceSaveLoad UOperatingSystemSaveGame::DeviceData
protected

◆ SaveVersion

float UOperatingSystemSaveGame::SaveVersion
protected

Static save version. DO NOT CHANGE if not required. Newer save versions are NOT compatible with previous ones.

◆ UserIndex

uint8 UOperatingSystemSaveGame::UserIndex
protected

The documentation for this class was generated from the following files: