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
| Signature | Name | Description |
|---|---|---|
SaveData() | SaveData |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetString | |
void | SetInt | |
void | SetFloat | |
void | SetBool | |
std::string | GetString | |
int64_t | GetInt | |
double | GetFloat | |
bool | GetBool | |
bool | Has | |
void | Remove | |
void | Clear | |
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. |
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 = "") constGetInt
C++
int64_t GetInt(const std::string& key, int64_t def = 0) constGetFloat
C++
double GetFloat(const std::string& key, double def = 0.0) constGetBool
C++
bool GetBool(const std::string& key, bool def = false) constHas
C++
bool Has(const std::string& key) constRemove
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() constGenerated from SaveGame/SaveGame.h via game.json · Nov 5, 2026Version 1.0.0