class

MSaveGame

UE's USaveGame: the player's progress, saved apart from the world. Unlocks, a crew dossier, the trophy record, settings that follow a profile — what a world-state slot has no place for, and what must survive a patch that changes the level. A save object is written to a NAMED slot (SaveGameManager::SaveGameObject, <name>.msavegame in the save folder) and never carries the scene, so a patched level always loads from the package.

Module
Game
Header
#include "Game/MSaveGame.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Two ways to hold data. A Visual Script graph uses the named values (SetInt, GetInt, ...) on the object MSaveStatics::GetSaveGame hands out. C++ subclasses MSaveGame and declares MPROPERTY fields: every supported field (bool, the integer widths, float/double, Vec2-4, Quat, string, string array, enum by name) is written in full and read back by name, so a field added later keeps its default on an older save and a removed one is ignored.

Properties

TypeNameDescription
std::stringDisplayNameWhat a slot browser shows: a chapter or character name, and the time played on the profile.
int32_tPlayTimeSecondsDefault 0.

Constructors

SignatureNameDescription
MSaveGame() = defaultMSaveGame

Public functions

ReturnsNameDescription
voidSetDisplayName
std::stringGetDisplayName
voidSetPlayTimeSeconds
int32_tGetPlayTimeSeconds
voidSetString
std::stringGetString
voidSetInt
int32_tGetInt
voidSetFloat
floatGetFloat
voidSetBool
boolGetBool
boolHasValue
voidRemoveValue
voidClearValues
SaveData&GetDataThe named values as MDF, for C++ that stores nested data (an inventory list, a quest log) as child nodes.
const SaveData&GetData
voidSerializeToNodeProperties (the reflected fields) and Values (the named store) as children of out.
voidDeserializeFromNode

Function details

MSaveGame

C++
MSaveGame() = default

SetDisplayName

C++
void SetDisplayName(const std::string& name)

GetDisplayName

C++
std::string GetDisplayName() const

SetPlayTimeSeconds

C++
void SetPlayTimeSeconds(int32_t seconds)

GetPlayTimeSeconds

C++
int32_t GetPlayTimeSeconds() const

SetString

C++
void SetString(const std::string& key, const std::string& value)

GetString

C++
std::string GetString(const std::string& key, const std::string& defaultValue) const

SetInt

C++
void SetInt(const std::string& key, int32_t value)

GetInt

C++
int32_t GetInt(const std::string& key, int32_t defaultValue) const

SetFloat

C++
void SetFloat(const std::string& key, float value)

GetFloat

C++
float GetFloat(const std::string& key, float defaultValue) const

SetBool

C++
void SetBool(const std::string& key, bool value)

GetBool

C++
bool GetBool(const std::string& key, bool defaultValue) const

HasValue

C++
bool HasValue(const std::string& key) const

RemoveValue

C++
void RemoveValue(const std::string& key)

ClearValues

C++
void ClearValues()

GetData

C++
SaveData& GetData()

The named values as MDF, for C++ that stores nested data (an inventory list, a quest log) as child nodes.

GetData

C++
const SaveData& GetData() const

SerializeToNode

C++
void SerializeToNode(MdfNode& out) const

Properties (the reflected fields) and Values (the named store) as children of out. Read is merge-by-name: a field the node does not carry keeps its current value.

DeserializeFromNode

C++
void DeserializeFromNode(const MdfNode& in)
Generated from Game/MSaveGame.h via game.json · Nov 5, 2026Version 1.0.0