Skip to content

Persistence

Lukas edited this page Aug 7, 2024 · 3 revisions

This module handles saving data to disk and has various utilities that help with organizing data and interfaces that streamline loading and saving.

GameLoader

GameSaver

E.g if a compiler introduces padding to a struct, this can make it impossible to deserialize the data with a different compiler. Strong guarantee: A save can always be loaded by the program that made it! Generally true: If a game is compiled with different compilers (GCC, Clang, MSVC), saves can still be loaded the other version This strategy is chosen mainly for its flexibility but also simplicity.

Clone this wiki locally