HATPC/scenes/save_data.h

25 lines
654 B
C

#ifndef SAVEDATA_SCENES_H
#define SAVEDATA_SCENES_H
/**
* These are data that should persist and accessible by all scenes.
* It is expected to be modified over the course of the program lifetime by any scene.
*
* It is expected that only one save data is loaded and modified at any given time.
* Only used to keep track of the completed levels.
*
* General engine data belongs in the engine layer.
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
int load_savedata();
int writeout_savedata();
bool is_level_completed(uint32_t level_num);
void set_level_completed(uint32_t level_num, bool complete);
#endif // SAVEDATA_SCENES_H