class

SaveData

Key/value bag for the script-authored portion of a save. World state (entity positions, animator phase, physics) is handled by the Scene snapshot — Custom is for the player-progress contract: gold, quest flags, unlocked maps, inventory. Keeping the two distinct simplifies migration: world serialization tracks ECS structure, Custom tracks the designer's vocabulary.

Module
Game
Header
#include "SaveGame/SaveGame.h"
Namespace
Mowo

Constructors

SignatureNameDescription
SaveData()SaveData

Public functions

ReturnsNameDescription
voidSetString
voidSetInt
voidSetFloat
voidSetBool
std::stringGetString
int64_tGetInt
doubleGetFloat
boolGetBool
boolHas
voidRemove
voidClear
MdfNode&NodeDirect MDF escape hatch — gameplay code that wants to store arbitrary nested data (an inventory list, a quest log) reaches in here and adds children.
const MdfNode&Node

Function details

SaveData

C++
SaveData()

SetString

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

SetInt

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

SetFloat

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

SetBool

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

GetString

C++
std::string GetString(const std::string& key, const std::string& def = "") const

GetInt

C++
int64_t GetInt(const std::string& key, int64_t def = 0) const

GetFloat

C++
double GetFloat(const std::string& key, double def = 0.0) const

GetBool

C++
bool GetBool(const std::string& key, bool def = false) const

Has

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

Remove

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

Clear

C++
void Clear()

Node

C++
MdfNode& Node()

Direct MDF escape hatch — gameplay code that wants to store arbitrary nested data (an inventory list, a quest log) reaches in here and adds children. Standard MDF serialization handles the rest.

Node

C++
const MdfNode& Node() const
Generated from SaveGame/SaveGame.h via game.json · Nov 5, 2026Version 1.0.0